From 6dbf588237529fc8909bf65caa103fd4fc224fbc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Aug 2013 01:20:22 -0700 Subject: fixes #9310: alerts aren't dismissable by default, now requires .alert-dismissable if you need a close button --- components.html | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'components.html') diff --git a/components.html b/components.html index ea75fe32d..4364af0be 100644 --- a/components.html +++ b/components.html @@ -1880,40 +1880,30 @@ body { padding-bottom: 70px; }

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the alerts jQuery plugin.

-

Default alert

+

Default alert

Wrap any text and an optional dismiss button in .alert for a basic warning alert message.

-
-

Ensure proper behavior across all devices

-

Be sure to use the <button> element with the data-dismiss="alert" data attribute.

-
-
- Warning! Best check yo self, you're not looking too good.
{% highlight html %}
- Warning! Best check yo self, you're not looking too good.
{% endhighlight %} -

Contextual alternatives

+

Contextual alternatives

Add optional classes to change an alert's connotation.

- Oh snap! Change a few things up and try submitting again.
- Well done! You successfully read this important alert message.
- Heads up! This alert needs your attention, but it's not super important.
@@ -1923,19 +1913,36 @@ body { padding-bottom: 70px; }
...
{% endhighlight %} - +

Dismissable alerts

+

Build on any alert by adding an optional .alert-dismissable and close button.

+
+
+ + Warning! Best check yo self, you're not looking too good. +
+
+{% highlight html %} +
+ + Warning! Best check yo self, you're not looking too good. +
+{% endhighlight %} + +
+

Ensure proper behavior across all devices

+

Be sure to use the <button> element with the data-dismiss="alert" data attribute.

+
+ +

Use the .alert-link utility class to quickly provide matching colored links within any alert.

- Oh snap! Change a few things up and try submitting again.
- Well done! You successfully read this important alert message.
- Heads up! This alert needs your attention, but it's not super important.
-- cgit v1.2.3