This repository was archived by the owner on Feb 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 310
W014
Herst edited this page Aug 18, 2019
·
3 revisions
Carousel controls and indicators should use href or data-target to reference an element with class .carousel.
For proper processing of click events within a carousel, each anchor within .carousel-control should include either a href or data-target attribute with the ID of the corresponding element within the carousel.
Wrong:
<a class="left carousel-control" role="button" data-slide="prev">Right:
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">Also Right:
<a class="left carousel-control" data-target="#carousel-example-generic" role="button" data-slide="prev">Carousel controls and indicators should use href or data-target to reference an element with class .carousel.
For proper processing of click events within a carousel, each anchor within .carousel-control should include either a href or data-target attribute with the ID of the corresponding element within the carousel.
Wrong:
<a class="carousel-control-prev" role="button" data-slide="prev">Right:
<a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">Also Right:
<a class="left carousel-control" data-target="#carousel-example-generic" role="button" data-slide="prev">Bootlint documentation wiki content is licensed under the CC BY 3.0 License, and based on Bootstrap's docs which are copyright Twitter, Inc.