You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Sometimes I feel it's hard to see the variants classes in a big list of classes in an element.
It's also hard to organize.
Here is a typical exemple (from Pines UI) :
My proposal is to allow dedicated attributes to set the variants classes like
md-class
orhover-class
.To be complete we must allow variant chaining, for exemple like in the documentation :
Of cours, the format of the attribute name can be challenged :
md-class
,class-md
,class:md
, ...Note : back in the day I made a very small utility for my own use that was based on that idea (for classic CSS) : https://github.com/nbrignol/responsive-class
Beta Was this translation helpful? Give feedback.
All reactions