diff options
| author | Chris Rebert <[email protected]> | 2014-05-04 00:33:58 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-05-04 00:33:58 -0700 |
| commit | ce2cad6366d167c1fa17869478053dd490a94bd1 (patch) | |
| tree | 6d5f5506506e1db0e00912901e8aa271cbba6e7e /docs/_includes/components/alerts.html | |
| parent | 3bc95979a9318258e027830b35c840704eb1e3be (diff) | |
| parent | 949b81f51171550bcec0d92e771793999e69a389 (diff) | |
| download | bootstrap-ce2cad6366d167c1fa17869478053dd490a94bd1.tar.xz bootstrap-ce2cad6366d167c1fa17869478053dd490a94bd1.zip | |
Merge pull request #13493 from twbs/close-btn-access
Improve accessibility of close buttons in modals & alerts
Diffstat (limited to 'docs/_includes/components/alerts.html')
| -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 %} |
