When working with Vue, I encountered a situation similar to
:style="{
[`--chip-bg-hover`]: hoverColorValue,
[`--chip-bg-active`]: activeColor,
[`--chip-border-hover`]: borderHoverColorValue,
}"
Then, in SCSS,
.chip:hover {
box-shadow: 0 10px 20px 0 #00000026;
@extend --chip-bg-actve;
}
The issue is obvious. It's not possible to extend from the --chip-bg-active variable as it is a string and doesn't work correctly. Does anyone know the correct way to dynamically extend a class?