anthonyshort/idiomatic-sass

Modular state-based classnames

andi1984 opened this issue · 0 comments

Hi,

first of all, I really want to say that I like what you have collected so far, because I think a lot of frontend devs daily working with SASS and CSS think about these issues, at least they should.

What I still miss is some naming-convention discussion about state-based classnames inside modules.

What do you think about it?

I highly recommend Jonathan Snook's talk at BeyondTellerrand this year. He was pointing out that he moved from .is-btn-active state classes (which seem to be formulated as a question) to .btn-is-active.

I think this should be also pointed out to readers of this project.

Also pointing out to prefix every state class name with the corresponding module it belongs to, avoiding any clashes with other state classes of other modules.