3 ms·
There is also the ::part() selector now which is quite useful for selecting things within a shadow. https://shoelace.style/ https://shoelace.style/ uses parts f
by quechimba 4y ago
There is also the ::part() selector now which is quite useful for selecting things within a shadow. https://shoelace.style/ https://shoelace.style/ uses parts for styling individual parts within custom elements.
- claytongulick 4y agoIn practice, I've found that to be pretty unwieldy and difficult to use. My general approach is to keep most application level components in the light dom for styling, and only use shadow dom for library-like components, mostly layouts for slotting light dom stuff.