Skip to content
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 Variable replacement ignored for CSS 4 variables #12

Closed
TristanPct opened this issue Nov 16, 2021 · 1 comment
Closed

SASS Variable replacement ignored for CSS 4 variables #12

TristanPct opened this issue Nov 16, 2021 · 1 comment

Comments

@TristanPct
Copy link

TristanPct commented Nov 16, 2021

Installed product versions

  • Visual Studio: 2022
  • This extension: 1.14.0

Description

I have SASS file with variables injected as CSS 4 variables values, and they're not replaced by the compilation.

Source file

$test: 1.5rem;
$test2: 2rem;

:root {
    --my-var: $test;
}

.myClass {
    --my-var: $test2;
}

Current behavior

Generated CSS from this extension:

:root {
  --my-var: $test;
}

.myClass {
  --my-var: $test2;
}

Expected behavior

Generated CSS from the original extension (VS 2019):

:root {
  --my-var: 1.5rem; }

.myClass {
  --my-var: 2rem; }
@failwyn
Copy link
Owner

failwyn commented Nov 16, 2021

This is no longer proper SASS syntax.

Duplicate of #4

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

No branches or pull requests

2 participants