Css !Important
Just a quick question if we cannot use !important too much , and if your css code doesn't work without !important then what solution do we have to make your code work. Otherwise there would be alot !important.
6 Replies
If you’re using a custom theme you shouldn’t need many important at all.
but then it doesn't change the color of text from some classes
eg. here
That’s probably getting set with the custom color css properties. But some things might still need it but it shouldn’t be a lot.
so what's the limit of using i t?
Could also try just setting the property too. Would need to see what the actual custom number is on the icon though.
There’s no actual issue with it except that it can’t be overridden later in the cascade.
Important exists for a reason you just have to be conscious of what you are doing with it.
this doesn't changing color