Skip to content

[v4] peer and peer-checked not working #13626

Answered by adamwathan
ev3rlost asked this question in Help
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ev3rlost
Comment options

@bitofbreeze
Comment options

@wongjn
Comment options

@bitofbreeze
Comment options

@wongjn
Comment options

Answer selected by ev3rlost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants