Better BEM
ai opened this issue · comments
Awesome that you use BEM-like isolation. But using real BEM naming could improve readability.
- You should use different separator for
block
/element
and between words.card_bank-name
instead ofcard-bank-name
. What if you will addcard-bank
block in future? :D - Avoid nested elements.
.card_label
instead of.card_date_label
. - Avoid global unprefixed styles.
.card_label.is-invalid
instead of.invalid
.