Add docs for compound :global selector

pull/6271/head
Geoff Rich 5 years ago
parent b3a642c3d3
commit 354cdf22b2

@ -277,6 +277,12 @@ To apply styles to a selector globally, use the `:global(...)` modifier.
to this component */
color: goldenrod;
}
p:global(.red) {
/* this will apply to <p> elements belonging to this
component that have the class "red" dynamically
applied (e.g. via node.classList.add) */
}
</style>
```

Loading…
Cancel
Save