Erik Harper
KPCKevin Powell - Community
•Created by Erik Harper on 3/12/2024 in #front-end
CSS Custom Property override on a custom element with attribute selectors doesn't work as expected
If I remove the
.container
from the shadowRoot style selector, it works5 replies
KPCKevin Powell - Community
•Created by Erik Harper on 3/12/2024 in #front-end
CSS Custom Property override on a custom element with attribute selectors doesn't work as expected
I figured out a solution to this though, just now: https://codepen.io/eriklharper/pen/mdgEXyj
5 replies
KPCKevin Powell - Community
•Created by Erik Harper on 3/12/2024 in #front-end
CSS Custom Property override on a custom element with attribute selectors doesn't work as expected
Changing it in the shadowRoot style isn't the use case I'm after though. This is for the case where the custom element exposes an overridable css token property that can make it themable.
5 replies