Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
CSS Custom Property override on a custom element with attribute selectors doesn't work as expected - Kevin Powell - Community
KP-C
Kevin Powell - Community
β’
2y ago
β’
4 replies
Erik Harper
CSS Custom Property override on a custom element with attribute selectors doesn't work as expected
Can someone here explain to me why the second instance of my
calcite-chip
calcite-chip
component isn
't styled pink instead of blue
?
https://codepen.io/eriklharper/pen/bGJeaJz?editors=1111
CodePen
Erik Harper
Why doesn't my CSS custom property override apply to this attribute...
Example from
https://newinweb.com/2018/04/29/custom-elements/
.
.
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time π.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Thoughts on attribute selectors
KP-C
Kevin Powell - Community / front-end
4y ago
nested scss doesn't work as expected
KP-C
Kevin Powell - Community / front-end
4y ago
CSS selectors
KP-C
Kevin Powell - Community / front-end
2y ago
css selectors
KP-C
Kevin Powell - Community / front-end
4y ago