Hi @hankchizljaw, I was having a conversation with some pals over on Chris Ferdinandi’s Slack community about CUBE. I was admiring the use of data-attribute
but someone else asked why? Which is a valid question. Why not card--reversed
or state-reversed
classes, for instance?
You do mention in the article:
This provides a useful hook for both CSS and JavaScript!
Is this the main reason or is there some deeper philosophy or practical reason behind this choice?
Cheers,
Charles