diff options
Diffstat (limited to 'docs/javascript/alerts.md')
| -rw-r--r-- | docs/javascript/alerts.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/javascript/alerts.md b/docs/javascript/alerts.md index 8d3df5d2f..4cda070f0 100644 --- a/docs/javascript/alerts.md +++ b/docs/javascript/alerts.md @@ -9,7 +9,7 @@ Add dismiss functionality to all alert messages with this plugin. {% example html %} <div class="alert alert-warning alert-dismissible fade in" role="alert"> - <button type="button" class="close" data-dismiss="alert"> + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> <span class="sr-only">Close</span> </button> @@ -44,7 +44,7 @@ $(".alert").alert() Just add `data-dismiss="alert"` to your close button to automatically give an alert close functionality. Closing an alert removes it from the DOM. {% highlight html %} -<button type="button" class="close" data-dismiss="alert"> +<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> <span class="sr-only">Close</span> </button> |
