add role="alert" to Alert examples, to improve accessibility
Per d8fcbcd3fe/README.md (alert)
This commit is contained in:
parent
1902f0ab50
commit
4277ba62d3
4 changed files with 28 additions and 28 deletions
|
|
@ -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">×</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">×</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue