-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
dark selector does not work correctly in @apply starting from version 3.3.0 #13037
Comments
Definitely a real bug, thanks for reporting! My gut is we can fix this by updating the } else if (mode === 'class') {
- addVariant('dark', `:is(${selector} &)`)
+ addVariant('dark', `&:is(${selector}, ${selector} *)`)
} By the looks of it, our internals will properly hoist out the pseudo-elements automatically if we move things around this way. Will try to get this patched up this week 👍 |
@adamwathan i am interested can you assign it me |
I came across the same issue with my next project. I solved it by making these changes in tailwind.config.js: from |
I've merged in the fix for this and am aiming to tag a patch release within the next few hours. I'll update this once it's out. |
v3.4.2 has been released and both the CDN and Play have been updated. Your Play now works as expected! |
What version of Tailwind CSS are you using?: v3.3.0
What build tool (or framework if it abstracts the build tool) are you using?: postcss-cli 8.4.32, Next.js 13.4.19, webpack
What version of Node.js are you using?: v20
What browser are you using?: Chrome
What operating system are you using?: Windows
Reproduction URL:
https://play.tailwindcss.com/8lfHYybqfC
Describe your issue
In the repro you can see that in the latest version of tw v3 the scrollbar does not turn green in dark mode, while it does in v2.
There is a workaround if you use the .dark class:
This should work with the first option as well.
This issue has already been reported in different discussions without a repro, or in similar issues that were linked to a specific framework.
@apply dark:
doesn't work anymore with vue:deep(.child-class)
#11024According to the release article of v3.3 there should be no breaking changes. This is one though.
The text was updated successfully, but these errors were encountered: