From dde69698ec99b289c9eaf7d00755f0555ec7fd43 Mon Sep 17 00:00:00 2001 From: Stephen Beemsterboer Date: Thu, 22 Feb 2018 14:17:27 -0500 Subject: [PATCH] Clarify the necessary `data-target`/`href` attribute for carousel controls --- docs/4.0/components/carousel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/4.0/components/carousel.md b/docs/4.0/components/carousel.md index e12f83cebb23..00a8fed9153d 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