diff options
| author | Stephen Beemsterboer <[email protected]> | 2018-03-13 03:31:37 -0400 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-03-13 09:31:37 +0200 |
| commit | 1859595cb6e1c92ba8134a7c12a087cb05f89688 (patch) | |
| tree | 488c10f01b2981ea6a2df16bede1a22b00a3bb1e /docs | |
| parent | b9628d064225eb703ea200fe170748c0942b3261 (diff) | |
| download | bootstrap-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.md | 2 |
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 |
