Skip to content

Commit

Permalink
Clarify the necessary data-target/href attribute for carousel con…
Browse files Browse the repository at this point in the history
…trols (#25690)
  • Loading branch information
balbuf authored and XhmikosR committed Mar 13, 2018
1 parent b9628d0 commit 1859595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/4.0/components/carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1859595

Please sign in to comment.