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
Assume that we have set of classes with modifiers and they all have the outline-none class:
<buttonclass="bg-violet-500 hover:outline-none active:outline-none focus:outline-none ...">
Save changes
</button>
Here, In all classes we need to write the class outline-none. Instead if we can group those classes together by connecting all modifis with an OR operator, it will be much cleaner. As an example,
<buttonclass="bg-violet-500 hover|active|focus:outline-none ...">
Save changes
</button>
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
-
Assume that we have set of classes with modifiers and they all have the
outline-none
class:Here, In all classes we need to write the class
outline-none
. Instead if we can group those classes together by connecting all modifis with an OR operator, it will be much cleaner. As an example,Beta Was this translation helpful? Give feedback.
All reactions