aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/components/alerts.html
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2014-12-07 22:46:20 +0000
committerPatrick H. Lauke <[email protected]>2014-12-07 22:46:20 +0000
commit255e5d68751cb93f95d1cbddbf2a12d5f56d4b70 (patch)
treec202dd65a45407eb720b5f5e07f5eee6dd2aca93 /docs/_includes/components/alerts.html
parent08f388679b7e77104d3129733feffb956b10dcf0 (diff)
parent202f1f8d69b119fd63d6788ee98e40321f53423b (diff)
downloadbootstrap-255e5d68751cb93f95d1cbddbf2a12d5f56d4b70.tar.xz
bootstrap-255e5d68751cb93f95d1cbddbf2a12d5f56d4b70.zip
Merge pull request #15320 from patrickhlauke/docs-accessibility-tweaks
Docs accessibility tweaks: use ``aria-label`` for close ``<button>``, expand advice for ``<abbr>``, form control labels, make sidebar navigation a ``<nav>``
Diffstat (limited to 'docs/_includes/components/alerts.html')
-rw-r--r--docs/_includes/components/alerts.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/_includes/components/alerts.html b/docs/_includes/components/alerts.html
index 717308354..7487a968a 100644
--- a/docs/_includes/components/alerts.html
+++ b/docs/_includes/components/alerts.html
@@ -40,13 +40,13 @@
</div>
<div class="bs-example" data-example-id="dismissible-alert-css">
<div class="alert alert-warning alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<strong>Warning!</strong> Better check yourself, you're not looking too good.
</div>
</div>
{% highlight html %}
<div class="alert alert-warning alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<strong>Warning!</strong> Better check yourself, you're not looking too good.
</div>
{% endhighlight %}