diff options
Diffstat (limited to 'docs/components/alerts.md')
| -rw-r--r-- | docs/components/alerts.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/components/alerts.md b/docs/components/alerts.md index 7ab6df8f4..b1ac0d845 100644 --- a/docs/components/alerts.md +++ b/docs/components/alerts.md @@ -73,12 +73,12 @@ Using the alert JavaScript plugin, it's possible to dismiss any alert inline. He - Be sure you've loaded the alert plugin, or the compiled Bootstrap JavaScript. - Add a dismiss button and the `.alert-dismissible` class, which adds extra padding to the right of the alert and positions the `.close` button. - On the dismiss button, add the `data-dismiss="alert"` attribute, which triggers the JavaScript functionality. Be sure to use the `<button>` element with it for proper behavior across all devices. -- To animate alerts when dismissing them, be sure to add the `.fade` and `.in` classes. +- To animate alerts when dismissing them, be sure to add the `.fade` and `.active` classes. You can see this in action with a live demo: {% example html %} -<div class="alert alert-warning alert-dismissible fade in" role="alert"> +<div class="alert alert-warning alert-dismissible fade active" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> |
