From 949b81f51171550bcec0d92e771793999e69a389 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 3 May 2014 19:38:09 -0700 Subject: [PATCH] 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 --- docs/_includes/components/alerts.html | 4 ++-- docs/_includes/css/helpers.html | 4 ++-- docs/_includes/js/alerts.html | 6 +++--- docs/_includes/js/modal.html | 12 ++++++------ 4 files changed, 13 insertions(+), 13 deletions(-) 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.