Skip to content

Instantly share code, notes, and snippets.

@sturobson
Created November 13, 2013 15:14
Show Gist options
  • Save sturobson/7450697 to your computer and use it in GitHub Desktop.
Save sturobson/7450697 to your computer and use it in GitHub Desktop.
naming convention opinion...
I'm front-end'ing a site for a client that has a 'favourite' or 'star-ing' functionality.
My question is, how to name whether the item has been starred or not.
Current logic in my CSS has things that are already .is-open, .is-closed, .is-active, .is-inactive, .is-visible and .is-hidden
I'm currently toying with
.is-favourited and .is-Notfavourited but that's pretty crap
Maybe .is-listed, .is-unlisted ?
Thoughts?
@RainbowArray
Copy link

I would avoid using favourite in the class title just because the word has spelling variations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment