// Test 1:
.wrapper {
@each $key, $value in $colors {
&[data-theme=string.quote("#{$key}")] {
background-color: $value;
color: map.get($colors, "text");
}
}
}
// Test 2:
.wrapper {
@each $key, $value in $colors {
&[data-theme="yellow"] {
background-color: $value;
color: map.get($colors, "text");
}
}
}
// Test 1:
.wrapper {
@each $key, $value in $colors {
&[data-theme=string.quote("#{$key}")] {
background-color: $value;
color: map.get($colors, "text");
}
}
}
// Test 2:
.wrapper {
@each $key, $value in $colors {
&[data-theme="yellow"] {
background-color: $value;
color: map.get($colors, "text");
}
}
}