aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-03-12 10:18:07 -0700
committerMark Otto <[email protected]>2014-03-12 10:18:07 -0700
commitb136d42ba5b9f5e181954bb3ff719552b7d2e228 (patch)
tree6e5791e0e2da90e15ebb85b94e498fbc65b2bb0d /docs/javascript.html
parent28d2de3703f3db35ec27aee73aec338d5bc23264 (diff)
parent4277ba62d35438aab1f445769d6263cb6e2114d2 (diff)
downloadbootstrap-b136d42ba5b9f5e181954bb3ff719552b7d2e228.tar.xz
bootstrap-b136d42ba5b9f5e181954bb3ff719552b7d2e228.zip
Merge pull request #13024 from twbs/role-alert
add role="alert" to Alert examples, to improve accessibility
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>