I'm trying to use CSS Custom properties in my Angular 7 app but am running into issues where building down to css gets rid of the property that is set to a CSS variable.
SCSS
:root {
--my-test-var: red;
}
.testclass123 {
height: 150px;
background: var(--my-test-var);
}
Builds down to:
:root {
--my-test-var: red;
}
.testclass123 {
height: 150px;
}
If I use a fallback options like var(--my-test-var, purple);
then .testclass123
will also have property background: purple;
My Angular version is 7.2.7 and Angular Material 7.3.7