How can you check if a CSS variable is equal to a value.
default.scss
:root {
--default-direction: ltr;
}
right.scss
:root {
--default-direction: rtl;
}
I wanted to add some cases in main.scss based on this CSS variable value. I want something like the below code snippet. Is it possible to check variable value and how to do so?
main.scss
@if(var(--default-direction) == rtl) {
$flex-direction: row-reverse;
}