aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-05-09 15:31:52 -0700
committerChris Rebert <[email protected]>2014-05-09 15:31:52 -0700
commitb7ac0d401f4100a40028e8b75d6130b70e4d9390 (patch)
tree47e9b66faa610a90e07f2eaec71c801fe0714db0 /docs
parent48fd9e29a24ae7fd8d8061e62a099c6097c41f18 (diff)
downloadbootstrap-b7ac0d401f4100a40028e8b75d6130b70e4d9390.tar.xz
bootstrap-b7ac0d401f4100a40028e8b75d6130b70e4d9390.zip
add role="button" to [data-slide="prev"],[data-slide="next"] to improve accessibility
Per https://github.com/paypal/bootstrap-accessibility-plugin/blob/master/README.md#carousel Credit: https://github.com/paypal/bootstrap-accessibility-plugin
Diffstat (limited to 'docs')
-rw-r--r--docs/_includes/js/carousel.html12
-rw-r--r--docs/examples/carousel/index.html4
-rw-r--r--docs/examples/rtl/index.html4
-rw-r--r--docs/examples/theme/index.html4
4 files changed, 12 insertions, 12 deletions
diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html
index fa7476b68..b8a0d1e4b 100644
--- a/docs/_includes/js/carousel.html
+++ b/docs/_includes/js/carousel.html
@@ -21,10 +21,10 @@
<img data-src="holder.js/900x500/auto/#555:#333/text:Third slide" alt="Third slide">
</div>
</div>
- <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
+ <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
- <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
+ <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
@@ -56,10 +56,10 @@
</div>
<!-- Controls -->
- <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
+ <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
- <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
+ <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
@@ -102,10 +102,10 @@
</div>
</div>
</div>
- <a class="left carousel-control" href="#carousel-example-captions" data-slide="prev">
+ <a class="left carousel-control" href="#carousel-example-captions" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
- <a class="right carousel-control" href="#carousel-example-captions" data-slide="next">
+ <a class="right carousel-control" href="#carousel-example-captions" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
diff --git a/docs/examples/carousel/index.html b/docs/examples/carousel/index.html
index 828314603..06a2eb8bc 100644
--- a/docs/examples/carousel/index.html
+++ b/docs/examples/carousel/index.html
@@ -113,8 +113,8 @@
</div>
</div>
</div>
- <a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
- <a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
+ <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
+ <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div><!-- /.carousel -->
diff --git a/docs/examples/rtl/index.html b/docs/examples/rtl/index.html
index 070831461..2af200710 100644
--- a/docs/examples/rtl/index.html
+++ b/docs/examples/rtl/index.html
@@ -626,10 +626,10 @@
<img data-src="holder.js/1140x500/auto/#555:#333/text:Third slide" alt="Third slide">
</div>
</div>
- <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
+ <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
- <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
+ <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
diff --git a/docs/examples/theme/index.html b/docs/examples/theme/index.html
index f312df4ee..429de1730 100644
--- a/docs/examples/theme/index.html
+++ b/docs/examples/theme/index.html
@@ -628,10 +628,10 @@
<img data-src="holder.js/1140x500/auto/#555:#333/text:Third slide" alt="Third slide">
</div>
</div>
- <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
+ <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
- <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
+ <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>