From: Chris Rebert Date: Sun, 4 May 2014 02:38:09 +0000 (-0700) Subject: Improve accessibility of close buttons in modals & alerts X-Git-Tag: v3.2.0~201^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13493%2Fhead;p=thirdparty%2Fbootstrap.git 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 --- diff --git a/docs/_includes/components/alerts.html b/docs/_includes/components/alerts.html index 063c52cd5b..f0895b0ed9 100644 --- a/docs/_includes/components/alerts.html +++ b/docs/_includes/components/alerts.html @@ -36,13 +36,13 @@

Build on any alert by adding an optional .alert-dismissable and close button.

{% highlight html %} {% endhighlight %} diff --git a/docs/_includes/css/helpers.html b/docs/_includes/css/helpers.html index a76704673b..043dad9ff1 100644 --- a/docs/_includes/css/helpers.html +++ b/docs/_includes/css/helpers.html @@ -48,10 +48,10 @@

Close icon

Use the generic close icon for dismissing content like modals and alerts.

-

+

{% highlight html %} - + {% endhighlight %} diff --git a/docs/_includes/js/alerts.html b/docs/_includes/js/alerts.html index de2ae9b84d..3513015335 100644 --- a/docs/_includes/js/alerts.html +++ b/docs/_includes/js/alerts.html @@ -5,14 +5,14 @@

Add dismiss functionality to all alert messages with this plugin.