]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Clarify the necessary `data-target`/`href` attribute for carousel controls (#25690)
authorStephen Beemsterboer <balbuf@users.noreply.github.com>
Tue, 13 Mar 2018 07:31:37 +0000 (03:31 -0400)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 13 Mar 2018 07:31:37 +0000 (09:31 +0200)
docs/4.0/components/carousel.md

index 0a2a5dcbfa275110ae1c085a021f7fa46d66f5eb..db3e0617a013cf74efac458d10373234490692d6 100644 (file)
@@ -20,7 +20,7 @@ Lastly, if you're building our JavaScript from source, it [requires `util.js`]({
 
 Carousels don't automatically normalize slide dimensions. As such, you may need to use additional utilities or custom styles to appropriately size content. While carousels support previous/next controls and indicators, they're not explicitly required. Add and customize as you see fit.
 
-**The `.active` class needs to be added to one of the slides** otherwise the carousel will not be visible. Also be sure to set a unique id on the `.carousel` for optional controls, especially if you're using multiple carousels on a single page.
+**The `.active` class needs to be added to one of the slides** otherwise the carousel will not be visible. Also be sure to set a unique id on the `.carousel` for optional controls, especially if you're using multiple carousels on a single page. Control and indicator elements must have a `data-target` attribute (or `href` for links) that matches the id of the `.carousel` element.
 
 ### Slides only