6 ms·
This is a great approach for components that want to inherit all styling from their context. In cases where you want to introduce just a little styling, the CS
by djrenren 3y ago
This is a great approach for components that want to inherit all styling from their context.
In cases where you want to introduce just a little styling, the CSS Parts API is really cool: https://developer.mozilla.org/en-US/docs/Web/CSS/::part https://developer.mozilla.org/en-US/docs/Web/CSS/::part
- socketcluster 3y agoThanks for pointing this out. I should probably mention this approach in my article for cases when you need to work with slotted elements but don't want to inherit all page styles.