aboutsummaryrefslogtreecommitdiff
path: root/docs/components/alerts.md
diff options
context:
space:
mode:
authorStarsam80 <[email protected]>2016-10-27 16:13:17 -0600
committerStarsam80 <[email protected]>2016-12-07 21:20:15 -0700
commitbf39bb3ac3d2aef4687b3cd4762015d5f218e2bc (patch)
tree968d25a858633f88255e3cc6c923f07a7c44d36c /docs/components/alerts.md
parentede925d79bf92d5983a4508c6ed6fda9310e1e8b (diff)
downloadbootstrap-bf39bb3ac3d2aef4687b3cd4762015d5f218e2bc.tar.xz
bootstrap-bf39bb3ac3d2aef4687b3cd4762015d5f218e2bc.zip
Rename `.active` to `.show`
Diffstat (limited to 'docs/components/alerts.md')
-rw-r--r--docs/components/alerts.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/components/alerts.md b/docs/components/alerts.md
index b1ac0d845..da72e322e 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 `.active` classes.
+- To animate alerts when dismissing them, be sure to add the `.fade` and `.show` classes.
You can see this in action with a live demo:
{% example html %}
-<div class="alert alert-warning alert-dismissible fade active" role="alert">
+<div class="alert alert-warning alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@@ -111,7 +111,7 @@ Note that closing an alert will remove it from the DOM.
| Method | Description |
| --- | --- |
| `$().alert()` | Makes an alert listen for click events on descendant elements which have the `data-dismiss="alert"` attribute. (Not necessary when using the data-api's auto-initialization.) |
-| `$().alert('close')` | Closes an alert by removing it from the DOM. If the `.fade` and `.in` classes are present on the element, the alert will fade out before it is removed. |
+| `$().alert('close')` | Closes an alert by removing it from the DOM. If the `.fade` and `.show` classes are present on the element, the alert will fade out before it is removed. |
{% highlight js %}$(".alert").alert('close'){% endhighlight %}