This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
Grouping Variant CSS to remove prefixing Pseudo selectors for each class #80
likhith-deriv
started this conversation in
Ideas
Replies: 1 comment
-
I will try to follow your step and see how it goes man, will catch up with you soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following set of CSS classes
If you notice, there are some classes with the same
pseudo selector
likefocus-visible:outline-offset-2 focus-visible:outline-solid-blue-700
andattribute selector
likedata-[state=selected]:bg-solid-slate-1400 data-[state=selected]:hover:bg-solid-slate-1400
.It will make the code more cleaner and readable if we could group the CSS classes based on variants like
focus-visible:(outline-offset-2 outline-solid-blue-700)
.I came across this blog which suggests two ways
I tried making the changes, but couldn't seem to make it work while verifying in storybook. Can you please help check what went wrong?
Beta Was this translation helpful? Give feedback.
All reactions