Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arbitrary variants with modifiers inside the selector are generated in the wrong order #9977

Closed
Torsten85 opened this issue Dec 1, 2022 · 1 comment · Fixed by #9991
Closed
Assignees

Comments

@Torsten85
Copy link

Torsten85 commented Dec 1, 2022

What version of Tailwind CSS are you using?

v3.2.4

What build tool (or framework if it abstracts the build tool) are you using?

playground

Reproduction URL
https://play.tailwindcss.com/RWATzeVv1a

Describe your issue

This arbitrary variant [&::-webkit-scrollbar-thumb:hover]:bg-green-500 is generated in the wrong order as &:hover::-webkit-scrollbar-thumb but should be &::-webkit-scrollbar-thumb:hover.

When replacing the :: with just one :, the generated order is correct (but the result obviously does not work anymore)

@thecrypticace
Copy link
Contributor

Hey, I've merged in a fix for this which will be available in our next release. If you want to test it before then you can use our insiders build which should be published in the next few minutes: npm install tailwindcss@insiders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants