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

Suggestion: find an alternative to using "!important" in css #119

Open
tomduggan85 opened this issue Apr 5, 2018 · 0 comments
Open

Suggestion: find an alternative to using "!important" in css #119

tomduggan85 opened this issue Apr 5, 2018 · 0 comments

Comments

@tomduggan85
Copy link

tomduggan85 commented Apr 5, 2018

I think it's a good idea to find ways to not need !important in your css. For example, in this style block:

.notifications__container button {
margin: 0!important
}

.. is there a way to get that style rule applied by using a more specific css selector, so you don't need important? In my experience, using !important will get in your way later, because you end up needing to overwrite a style in some child element, but the parent set up the style using !important so you're stuck with it.

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

1 participant