Tweak wording per PR review

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

@ -279,9 +279,11 @@ To apply styles to a selector globally, use the `:global(...)` modifier.
}
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) */
/* this will apply to all <p> elements belonging to this
component with a class of red, even if class="red" does
not appear in the markup. This is useful when the class
of the element is dynamically applied, for instance
when updating the element's classList property directly. */
}
</style>
```

Loading…
Cancel
Save