News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by djrenren on Monday November 27, 2023 @05:47PM (#38439593)
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

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.