From: Stephen Beemsterboer Date: Tue, 13 Mar 2018 07:31:37 +0000 (-0400) Subject: Clarify the necessary `data-target`/`href` attribute for carousel controls (#25690) X-Git-Tag: v4.1.0~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1859595cb6e1c92ba8134a7c12a087cb05f89688;p=thirdparty%2Fbootstrap.git Clarify the necessary `data-target`/`href` attribute for carousel controls (#25690) --- diff --git a/docs/4.0/components/carousel.md b/docs/4.0/components/carousel.md index 0a2a5dcbfa..db3e0617a0 100644 --- a/docs/4.0/components/carousel.md +++ b/docs/4.0/components/carousel.md @@ -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