aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-02-11 13:15:40 -0800
committerChris Rebert <[email protected]>2014-03-11 19:41:54 -0700
commit4277ba62d35438aab1f445769d6263cb6e2114d2 (patch)
tree2ad0f390cd5f2c7e6f99b3c720367c13cf75ac56 /docs/javascript.html
parent1902f0ab50fb473fe78334c8bdd830863915415c (diff)
downloadbootstrap-4277ba62d35438aab1f445769d6263cb6e2114d2.tar.xz
bootstrap-4277ba62d35438aab1f445769d6263cb6e2114d2.zip
add role="alert" to Alert examples, to improve accessibility
Per https://github.com/paypal/bootstrap-accessibility-plugin/blob/d8fcbcd3fe86f0cb47fda0ffe269b2c7a2131f07/README.md#alert
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index 798ac1110..fcfc12a73 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -1393,14 +1393,14 @@ $('#myPopover').on('hidden.bs.popover', function () {
<h2 id="alerts-examples">Example alerts</h2>
<p>Add dismiss functionality to all alert messages with this plugin.</p>
<div class="bs-example">
- <div class="alert alert-warning fade in">
+ <div class="alert alert-warning fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
</div>
</div><!-- /example -->
<div class="bs-example">
- <div class="alert alert-danger fade in">
+ <div class="alert alert-danger fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<h4>Oh snap! You got an error!</h4>
<p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>