-
Notifications
You must be signed in to change notification settings - Fork 830
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
Specify a fallback for several CSS variables #671
Comments
Hi @pmartin35 ! Thanks for filing this issue! However, the lack of a fallback here is intentional and is valid CSS, so we're not sure why you're having issues parsing it. What version of postcss-custom-properties are you using? What is doing your linting check here? You may need to whitelist this issue if you're not able to resolve it in your linter. -Kim |
Hi @kflournoy-sf, We are using This is our current CSS webpack setup:
I have tried man different configuration options to try to hide the warnings (one example below) but nothing seems to work.
|
Hi @pmartin35 - I see that postcss-cssnext hasn't been updated for almost three years and the owner has deprecated it in favor of something else: https://moox.io/blog/deprecating-cssnext/ Since we don't use postcss over here, we can't really help much with troubleshooting the specifics of this. But since using variables like this is a relatively new practice, I wouldn't be surprised if this is a bug / oversight in one or more of these plugins when trying to parse these files. If you do figure out the issue, or file an issue against one or more of these packages, please update us here so we can follow along. Thanks, and good luck! |
When upgrading from SLDS version
2.10.1
to2.13.7
we have started receiving the followingpostcss
warnings. Seems like there is no fallback for a few variables within yoursalesforce-lightning-design-stystem.css
file. Most of the other variables in that file do have fallbacks. Would it be possible to add a fallback for these 4 as well?The text was updated successfully, but these errors were encountered: