-
Notifications
You must be signed in to change notification settings - Fork 3.4k
String interpolation, list and !important keyword #2374
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
Comments
Its weird though.. intrigues me.. |
To fix this, you would change quoted to add a new important scope so that interpolating variables doesn't set important on the rule it is used in. In addition you would have to change variable interpolation to add But I'm having 2nd thoughts. Take this .test-list {
color1: "@{color}";
color2: ~"@{color}";
color3: ~"@{color}" !important;
@color: black !important;
} gives .test-list {
color1: "black" !important;
color2: black !important;
color3: black !important;
} Now, this seems more useful to me.. I can't think of a solid example either way, so now I'm wondering whether to change it... |
That seems interesting but not critical, since it looks like it only has slightly different behavior with |
not sure I understand - that is the bug. |
I know, what I meant to say is that it seems like it would rarely, if ever, be encountered, if it only happens with @SomMeri's specific construction. The collapse of |
I noticed something odd about string interpolation and lists:
compiles into:
I would expect it to be:
I think it is just a minor issue, because following works correctly:
The text was updated successfully, but these errors were encountered: