Usage of CSS selectors for variants #4386
gfellerph
announced in
Architecture Decisions
Replies: 1 comment
-
Just a heads up for future self: [class|="btn"] { /* Targets all elements with btn and btn-something classes */ } |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
There are multiple ways HTML elements can be targeted with CSS selectors to apply styles. In #3440 we explored the different possibilities and discussed about benefits/drawbacks of each.
Decision
We are using classes with kebab-case scoping.
Example
Beta Was this translation helpful? Give feedback.
All reactions