enabled:group-hover has no effect #13285
-
I have a custom shadcn button, with the code:
within the spans, i added enabled: modifier, but when the button is not disabled, the effect still takes effect |
Beta Was this translation helpful? Give feedback.
Answered by
andymccray
Mar 21, 2024
Replies: 1 comment 1 reply
-
Hey @SHAGGYER! Chaining those modifiers should do the trick. You want to check that the group is enabled, not the child within. E.g. Tailwind Play example: https://play.tailwindcss.com/t6TdH9LyoR |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SHAGGYER
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @SHAGGYER!
Chaining those modifiers should do the trick. You want to check that the group is enabled, not the child within. E.g.
group-enabled:group-hover:translate-x-0
.Tailwind Play example: https://play.tailwindcss.com/t6TdH9LyoR