[v4] peer and peer-checked not working #13626
-
It worked flawlesly in v3, but after upgrading to v4 the code is broken. Example: Try switching between versions and you'll see. Is it that peer has not been implemented in v4 yet? Just asking, so I don't waste my time debugging any further. |
Beta Was this translation helpful? Give feedback.
Answered by
adamwathan
May 2, 2024
Replies: 1 comment 5 replies
-
Hey! This is because of a breaking change around variant order, need to change this: - [&>span]:peer-checked:translate-x-full
+ peer-checked:[&>span]:translate-x-full Here's an updated Play: https://play.tailwindcss.com/SD9XVEa1ZJ Curious what you think of the change too, we made it so things read left to right like a CSS selector instead of inside-out like they have historically. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ev3rlost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! This is because of a breaking change around variant order, need to change this:
Here's an updated Play: https://play.tailwindcss.com/SD9XVEa1ZJ
Curious what you think of the change too, we made it so things read left to right like a CSS selector instead of inside-out like they have historically.