diff options
| author | Chris Rebert <[email protected]> | 2014-05-03 19:38:09 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-05-03 19:53:34 -0700 |
| commit | 949b81f51171550bcec0d92e771793999e69a389 (patch) | |
| tree | 30d5d243a71a289ae1aa74e9f27d62be5b309a47 /docs/_includes/components | |
| parent | bae289d1fe59d1c403b1a4fceaea6379f6008a2a (diff) | |
| download | bootstrap-949b81f51171550bcec0d92e771793999e69a389.tar.xz bootstrap-949b81f51171550bcec0d92e771793999e69a389.zip | |
Improve accessibility of close buttons in modals & alerts
Adds textual caption to the close buttons. The "X" multiplication sign isn't very meaningful to screenreaders.
Credit: https://github.com/paypal/bootstrap-accessibility-plugin
Per:
https://github.com/paypal/bootstrap-accessibility-plugin/blob/master/README.md#alert
https://github.com/paypal/bootstrap-accessibility-plugin/blob/master/README.md#modal-dialog
Diffstat (limited to 'docs/_includes/components')
| -rw-r--r-- | docs/_includes/components/alerts.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/_includes/components/alerts.html b/docs/_includes/components/alerts.html index 063c52cd5..f0895b0ed 100644 --- a/docs/_includes/components/alerts.html +++ b/docs/_includes/components/alerts.html @@ -36,13 +36,13 @@ <p>Build on any alert by adding an optional <code>.alert-dismissable</code> and close button.</p> <div class="bs-example"> <div class="alert alert-warning alert-dismissable" role="alert"> - <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> + <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <strong>Warning!</strong> Better check yourself, you're not looking too good. </div> </div> {% highlight html %} <div class="alert alert-warning alert-dismissable" role="alert"> - <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> + <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <strong>Warning!</strong> Better check yourself, you're not looking too good. </div> {% endhighlight %} |
