Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty labels and bages #5775

Closed
ivan1986 opened this issue Nov 3, 2012 · 4 comments
Closed

Empty labels and bages #5775

ivan1986 opened this issue Nov 3, 2012 · 4 comments
Labels

Comments

@ivan1986
Copy link

ivan1986 commented Nov 3, 2012

Empty labels and bages displayed by ugly little divs.

Maybe add

.badge, .label {
&:empty {
display: none;
}
}

@mdo mdo closed this as completed in ead5dbe Nov 3, 2012
@rafasoares
Copy link

That introduced a new problem: what if I don't want the badge to collapse? I've used them to get nice little status circles... Now I can't... Perhaps add a class to prevent collapsing?

@ZekeLu
Copy link

ZekeLu commented Aug 7, 2013

Empty label doesn't collapse in Bootstrap 3 RC1. Is it on purpose?

@cvrebert
Copy link
Collaborator

cvrebert commented Aug 7, 2013

@ZekeLu File a new bug rather than adding on to 9-month-old closed one.

stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
* When :empty, display: none;
* Add documentation for change in behavior
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
* When :empty, display: none;
* Add documentation for change in behavior
@tejasdha
Copy link

      if($('#badgeid').text()!=""){$('#badgeid').show() }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants