Re:Web Components Eliminate JavaScript Framework Lock-In
by socketcluster on Monday November 27, 2023 @06:24PM
(#38440013)
Thanks 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.
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