From 108d10a920449d113f6bf446941683a05607db3c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 18 Aug 2013 19:50:53 -0700 Subject: Refactor alerts to have a base class, but no default class, thus requiring a modifier class at all times --- components.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'components.html') diff --git a/components.html b/components.html index 7475fa108..a78033772 100644 --- a/components.html +++ b/components.html @@ -2206,22 +2206,14 @@ 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

-

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

+

Examples

+

Wrap any text and an optional dismiss button in .alert and one of the four contextual classes (e.g., .alert-success) for basic alert messages.

-
-
- Warning! Best check yo self, you're not looking too good. -
+
+

No default class

+

Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.

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

Contextual alternatives

-

Add optional classes to change an alert's connotation.

Well done! You successfully read this important alert message. @@ -2229,6 +2221,9 @@ body { padding-bottom: 70px; }
Heads up! This alert needs your attention, but it's not super important.
+
+ Warning! Best check yo self, you're not looking too good. +
Oh snap! Change a few things up and try submitting again.
@@ -2236,6 +2231,7 @@ body { padding-bottom: 70px; } {% highlight html %}
...
...
+
...
...
{% endhighlight %} -- cgit v1.2.3