by Yaggo · 13y ago · 0 comments
Oh please. Why not just a <button disabled>? So much redundancy and overly-verboseness for nothing.
"Namespacing" your CSS classes would make sense if you were actually composing element's style from multiple frameworks/libraries (vs. programming code), but that's not usually the case with CSS frameworks.
Have a .button class for styles of the button, font-family, height, width, border-radius, etc. You want _all_ .button elements to share this look and feel.
Then overwrite background colors, border colors etc on a button-primary, button-delete, etc classes.
It makes sense and it works.