3 ms·
It's mainly the latter. I did consider just using a class, but ultimately settled on this solution. This approach might facilitate usage with additional CSS com
by Looky1173 3y ago
It's mainly the latter. I did consider just using a class, but ultimately settled on this solution. This approach might facilitate usage with additional CSS compilers/tooling.
- canadiantim 3y agoI admit I become hesitant when I see "data-*" attributes as it makes me think Javascript might be necessary to use it
- Looky1173 3y ago"data-*" attributes don't require any JavaScript; their values can even be accessed from CSS with `content: attr(data-*);`