aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorStephen Beemsterboer <[email protected]>2018-03-13 03:31:37 -0400
committerXhmikosR <[email protected]>2018-03-13 09:31:37 +0200
commit1859595cb6e1c92ba8134a7c12a087cb05f89688 (patch)
tree488c10f01b2981ea6a2df16bede1a22b00a3bb1e /docs
parentb9628d064225eb703ea200fe170748c0942b3261 (diff)
downloadbootstrap-1859595cb6e1c92ba8134a7c12a087cb05f89688.tar.xz
bootstrap-1859595cb6e1c92ba8134a7c12a087cb05f89688.zip
Clarify the necessary `data-target`/`href` attribute for carousel controls (#25690)
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/components/carousel.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/4.0/components/carousel.md b/docs/4.0/components/carousel.md
index 0a2a5dcbf..db3e0617a 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