bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

The importance of the important label?

Open erikhuisman opened this issue 15 years ago • 8 comments

I received an email yesterday, i checked it, it's true! One might accidentally create a green label expecting a red one doing something like this:

<span class="label new important">email<span> We need to talk!

Hi Obama,

This is the inventor of the internets. We need to address an issue i came across recently. It seems like those hipsters at the twitters won't take the importance of .important very seriously. My modest proposal is to change patterns.less:1062 to

&.success { background-color: @green; } &.notice { background-color: lighten(@blue, 25%); } &.warning { background-color: @orange; } &.important { background-color: #c43c35; }

Al Gore

erikhuisman avatar Oct 18 '11 22:10 erikhuisman

What?

mdo avatar Oct 19 '11 00:10 mdo

But those are already the styles of the labels... or am I missing something?

mkchandler avatar Oct 19 '11 02:10 mkchandler

They are in the wrong order :) .new overwrites .important in the current situation.

erikhuisman avatar Oct 19 '11 02:10 erikhuisman

So where is the .new class coming from? Is this a custom class that is already setting the background-color? Still a bit confused... :-)

mkchandler avatar Oct 19 '11 02:10 mkchandler

sorry, what i wanted to say is .succes..

The order is now &.important { background-color: #c43c35; } &.warning { background-color: $orange; } &.success { background-color: $green; } &.notice { background-color: lighten(@blue, 25%); }

So my question basically is why is .success more important than .important (if you use both classes). Silly i know..

erikhuisman avatar Oct 19 '11 02:10 erikhuisman

I can't speak for the authors, but I don't think they were meant to be used in combination. They are for achieving a specific look by themselves. What are you gaining by giving the label the .success class in addition to the .important class? Not trying to be rude, just trying to understand.

mkchandler avatar Oct 19 '11 02:10 mkchandler

yep, @mkchandler is right here - we weren't intending these to be used together

fat avatar Oct 19 '11 04:10 fat

Correct. Use only one class as documented.

mdo avatar Oct 19 '11 05:10 mdo