Closed RyoYamamotoJP closed 10 years ago
Is this with static css or less?
Put it in quotes: badge('12', :warning)
<span class="badge badge-success">12</span>
<span class="badge badge-warning">12</span>
<span class="badge badge-important">12</span>
<span class="badge badge-info">12</span>
<span class="badge badge-inverse">12</span>
look the same as
<span class="badge">12</span>
Badges no longer have modifier classes and are purely meant as unread counters in Bootstrap 3.
That is true but users may want to add their own classes.
Oh, I see.
Thank you for your comments.
Additionally I added an rspec test to check that a number can be passed into the badge class successfully. Thanks for pointing this out! I agree with you that it should take a number or a string as the first param.
The following example is not working any more. The badge is not colorized.