|
|
|
|
|
by ryantownsend
3620 days ago
|
|
It's not so much about performance, it's about specificity. To override anything in `.c-button.primary` you'd need something to have equal or greater specificity (meaning you couldn't do `.c-button--large`). Obviously this is a fairly basic example, but with more chaining comes more levels of specificity which makes for increasingly difficult changes and worse productivity. |
|
One thing bothers me though. Isn't this very WET? You have to repeat the `.primary` rules in every `--primary` thing?
I'm still torn apart about `.button.primary` and `.button--primary`. Also semantic classes vs style bound classes. I'm not completely convinced by any methology.