-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
nested apply rules problems with !important and nested css #2302
Comments
This is the output I'm seeing (note that important is removed from both rules): .text-uppercase {
text-transform: uppercase !important;
}
.red-text {
color: red !important;
}
.test-0 {
text-transform: uppercase;
color: red;
} ...which is expected. .test-0 {
@apply red-text text-uppercase !important;
} The reason for this is that |
Hello @adamwathan. I understand it sounds good to not have important when applying, It's not very important but nested rule keep the Anyway I've found another related problem with
Output:
This is to take into consideration when fixing #2192 maybe.. I'm sorry I can't help you much with postcss, the apply rule seems a very complex script. |
UPDATED DEMO #2302 (comment)
Describe the problem:
When using a plugin with styles in
addComponents
, the!important
are compiled without!important,
when using@apply
.Source:
Result:
Expected result:
Link to a minimal reproduction:
https://github.com/minimit/twbug-component-important
The text was updated successfully, but these errors were encountered: