-
Notifications
You must be signed in to change notification settings - Fork 532
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
[sass|scss] support css variables to property #877
Comments
With the version 1.10 I am having following error when using css variables:
So it is not an enhancement anymore but an issue |
Have the same issue. Since CSS custom property not equal to Sass variables we have too many reasons to have both in sass file. |
Hi guys, you need to report this to Gonzales-pe which is the AST we use. The fatal errors you're encountering are because the AST doesn't currently support CSS variables / modules |
Seems like this issue is related tonyganch/gonzales-pe#197 |
If this is any help to anyone, I've managed to get around this by changing :root {
--custom-var: white;
} to :root {
#{--custom-var}: white;
} Not great but it suppresses the error thrown for the time being. I've not found any issues yet. |
@HHogg , Thanks, your solution works! |
@HHogg, have you found a way to handle multiple vars within a single block? I get a .foo {
#{--bar}: red;
#{--baz}: blue;
} |
Sorry @robsterlini I cant remember. I stopped using Sass a couple of years ago, and swapped to PostCSS/CSS Next. |
Is there any progress on this? |
Thanks for your patience all; we're looking to onboard additional maintainers this week who will be looking at all of the outstanding PRs
… On Oct 30, 2018, at 9:13 AM, Alex McCabe ***@***.***> wrote:
Is there any progress on this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Related: Request to allow the no-color-literals:
- allow-css-variables: true Would allow: .background {
background-color: rgba(var(--my-background-rgb), var(--my-background-alpha));
} |
Would it be possible to get an update on the progress of this issue? It's been almost 3 years since the bug was reported. |
Seems that this (tonyganch/gonzales-pe#290) had been resolved by tonyganch/gonzales-pe#295 |
@robsterlini Have you find a fix for no-duplicate-properties on css variables i'm still getting the no-duplicate-properties error |
Sadly not, I have been using |
If I use css variables:
sass-lint throw: no-misspelled-properties
The text was updated successfully, but these errors were encountered: