3.0.0-beta.6
https://codesandbox.io/s/18k1ormynl
Usage of CSS Variables inside of a scoped component is not compiling SCSS variables used with a CSS variable.
HelloWorld.vue
<style lang="scss" rel="stylesheet/scss" scoped>
h3 {
color: var(--h3-color, blue);
}
App.vue
<style lang="scss">
$variable-name: red;
#app {
--h3-color: $variable-name;
}
The compiled css results is --h3-color: $variable-name; as shown in Chrome when it is expected to be --h3-color: red;
The css variable instance is expected to compile the sass variable into the resolved value.
The scss variable is not being compiled.
I wasn't able to get the cli 3 beta 6 running with code sandbox but you can see the file changes I made in my steps to reproduce. I'm running that code locally and seeing the issue.
Plesase provide an actual reproduction. codesandbox doesn't use vuze-cli 3 so doesn't count ;)
@joshuajohnson814 ,
for SCSS / SASS with CSS variable
--h3-color: #{$variable-name};
@soft903 thanks that worked. closing this issue.
Most helpful comment
@joshuajohnson814 ,
for SCSS / SASS with CSS variable
--h3-color: #{$variable-name};