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

Remove !important flag for .hide #10751

Closed
IonicaBizau opened this issue Sep 21, 2013 · 1 comment
Closed

Remove !important flag for .hide #10751

IonicaBizau opened this issue Sep 21, 2013 · 1 comment

Comments

@IonicaBizau
Copy link

Fixing #6339, the !important flag was added for .hide class.

.hide { display: none !important; }

This breaks the utility of .show() jQuery function that adds style="display: block" attribute to the selected elements, because !important is stronger than style attribute. I created a JSFIDDLE that demonstrates this.

While the !important flag cannot be removed from CSS only it's better to remove it from Bootstrap CSS and if the programmer wants to add it just add a new row in a CSS file.

@juthilo
Copy link
Collaborator

juthilo commented Sep 21, 2013

Duplicate of #9881.

@juthilo juthilo closed this as completed Sep 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants