-
Notifications
You must be signed in to change notification settings - Fork 67
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
Gonzales PE 4.2.3 Fails Parsing SCSS Custom CSS Variable With #{} Interpolation #290
Comments
Glad I found this issue, as I'm having the same problem with colors, as well: @mixin iconColor($color, $colors...) {
--icon-color: #{$color};
@if length($colors) > 0 {
@for $i from 1 through length($colors) {
--icon-color-#{$i}: #{nth($colors, $i)};
}
}
} It comes through sass-lint as an error to like so:
|
Hi, have you found any workaround for that? |
@seventhqueen Nope |
@seventhqueen, well if you are writing the Sass yourself, just move the hyphens inside the interpolation:
to
My problem is that I'm trying to run gonzales-pe on Sass out of my control. |
Thanks, will run some test. I have the freedom to change them
—
Gabriel
SeventhQueen Team
http://seventhqueen.com
Support site
http://seventhqueen.com/support
On 29 June 2018 at 07:59:56, Kevin Lau (notifications@github.com) wrote:
@seventhqueen <https://github.com/seventhqueen>, well if you are writing
the Sass yourself, just move the hyphens inside the interpolation:
…--#{$color}: #{$value};
to
#{--$color}: #{$value};
My problem is that I'm trying to run gonzales-pe on Sass out of my control.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#290 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADkryzYGxbrvvptMOmRcvA2bhQBG2tOOks5uBbRMgaJpZM4T4phl>
.
|
also it fails when variable has $--name format. For example Element vue UI library is using that format in their scss |
Related issue: #197 |
The exact issue was not fixed. |
I am using Sass Extract which uses Gonzales PE ^4.2.2. I am on Gonzales PE 4.2.3.
I'm trying to parse the Bootstrap scss to grab variables using Sass Extract. However it fails on one file,
_root.scss
.Here is the command I'm running in the Node repl
It fails on line 4:
_root.scss
is the only file it fails on. If I remove the import on this line, it works.If I move the string inside the interpolation, it also works:
I know custom css properties are supported. But I don't know about custom css properties with interpolation. A workaround for now is to just skip this file since I'm only trying to grab the variables.
The text was updated successfully, but these errors were encountered: