-
Notifications
You must be signed in to change notification settings - Fork 14
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
Variable interpolation not working as expected #33
Comments
Update: This block is the closest I've gotten:
Which gets: |
Can you give this a try and let me know if it works as expected? |
That was the first place I'd looked - using the quote function instead of that custom one resulted in Initially, I'd thought it was just my mistake, so I had made this question on SO |
Are the quotes here required? This could be related to this issue. |
Ahh, looking into it based on that feedback; it looks like it's optional (so long as the value is alphanumeric). So, it's probably worth looking into, just incase someone needs it for a href tag at some point. |
The string.quote($variable) syntax appears to work as expected outside of the attribute selector, if you have an example where the quotes are required, but you can't get them to stay, I'd be happy to file a bug with Dart Sass and upgrade the extension when they address it. |
I'm gonna close this issue since I haven't found any places where it removed the quotes when they are required. |
When interpolating SCSS variables, unexpected outcomes seem to be occurring. I'm relatively new to this particular part of SCSS, so it might just be me getting it wrong.
Steps to recreate
I've created a mixin:
Based upon this map:
Which results in this:
Now, in my attempts to get quotes around that theme (i.e.
[data-theme="dark"]
), I've had[data-theme=\"dark\"]
,[data-theme="'dark'"]
,[data-theme='"dark"']
and just about every other combination - but it just seems not to work.Is it just me, or have I found an actual issue?
The text was updated successfully, but these errors were encountered: