-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Overwriting mixin properties #1873
Comments
This is due to the way that Polymer separates static styles from styles which contain custom properties. This use case is reasonable and our approach needs to be modified slightly to support this better. We will probably not separate custom properties css from static css within rules that contain properties. |
Thanks for the response. Will wait for an update then. |
This issue also leads to specificity issues when combining static and custom property rules. |
👍 |
1 similar comment
👍 |
@nazar-pc Here's a jsbin that, i think, demonstrates the issue: |
OK, here is easier to understand example: https://jsbin.com/xupufudivu/1/edit |
Seems to be different area than covered in #2642, but I'll take a look on this as well. |
#2642 now fixes this issue as well. |
Hello! I am trying to overwrite a property coming from a CSS mixing, but the way Polymer handles the variables makes it impossible to do so (without using "!important").
The expected result would be to have "white-space: normal" applied on top of the one provided by paper-styles, however that's not the case.
Do I have to rewrite the entire mixing just to change one property or is there an alternative way?
Cheers.
The text was updated successfully, but these errors were encountered: