Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

CSS variables mixed with SCSS variables don't emit proper CSS in 4.8+ #2336

Closed
nolanlawson opened this issue Apr 19, 2018 · 3 comments
Closed

Comments

@nolanlawson
Copy link

// styles.scss
$theme-color: #177380;
body {
  --theme-color: $theme-color;
}

Run:

node-sass styles.scss

Output in 4.7.4 (expected):

body {
  --theme-color: #177380; }

Output in 4.8.1-4.8.3:

body {
  --theme-color: $theme-color; }
$ npm -v
5.6.0
$ node -v
v9.11.1
@xzyfer
Copy link
Contributor

xzyfer commented Apr 19, 2018

Please search issue before opening a new one.

body {
  --theme-color: #{$theme-color}; }

The old behaviour was a bug that violated the Sass language spec.

@nolanlawson
Copy link
Author

Thanks, apologies for not finding the existing issue!

@akshaykhanna
Copy link

Please search issue before opening a new one.

body {
  --theme-color: #{$theme-color}; }

The old behaviour was a bug that violated the Sass language spec.

Still not working for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants