mirror of https://github.com/sveltejs/svelte
parent
c2f75dc7ba
commit
ade6b6e480
@ -0,0 +1,3 @@
|
|||||||
|
.foo.svelte-xyz[data-state='checked'] {
|
||||||
|
background-color: red;
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
<!-- an action or sth else could dynamically set the data-state -->
|
||||||
|
<div class="foo"></div>
|
||||||
|
<style>
|
||||||
|
.foo:global([data-state='checked']) {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue