You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add !important tiers to easily allow overriding higher level css with local changes. Where !important would default to !important-1 and higher tiers override lower ones just like z indexes.
More of a quality of life/making life easier change.
The text was updated successfully, but these errors were encountered:
Don't you think that !important is often considered as a "code smell" that can now be avoided with @layer and @scope? And you can still increase the specificity of the selector whose declaration should be more important.
!important, in general, shouldn't be heavily used. The @layer rule is the intended way to handle the sort of specificity conflicts that caused people to overuse !important in the past.
Uh oh!
There was an error while loading. Please reload this page.
Add !important tiers to easily allow overriding higher level css with local changes. Where
!important
would default to!important-1
and higher tiers override lower ones just like z indexes.More of a quality of life/making life easier change.
The text was updated successfully, but these errors were encountered: