-
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
Focus visible doesn't work with @apply in CSS module #6194
Comments
Hey! Can you please provide a proper reproduction (a repo we can clone that replicates your particular setup)? |
Yes, will do tomorrow morning |
Same issue with The issue comes with @apply in CSS module and without using the same utilities in the global css file or in className. reproduction: https://codesandbox.io/s/youthful-sky-9ktgf?file=/src/pages/index.tsx edit: updated example with tailwindcss 3.0.0 -> https://codesandbox.io/s/patient-platform-pm5qx?file=/src/pages/index.tsx |
Thank you. I was about to do it, I promise 😀 |
Can confirm that when just using normal utility classes focus visible rings work fine (--tw-ring-inset and --tr-ring-offset are set to /* */ if I don't explicitly use them) whereas when using @apply inside a CSS module I get these errors and the ring doesn't work |
In some scenarios this seems to be broken in 3.0 alpha 1 as well (not just alpha 2) |
got the same issues, working with transform and ring using @apply. |
I have same issues in v3 |
This issue appears to be resolved in Chrome but not Safari |
What version of Tailwind CSS are you using?
3.0.0-alpha.2
What build tool (or framework if it abstracts the build tool) are you using?
Next 12.0.4
What version of Node.js are you using?
v16.13.0
What browser are you using?
Chrome
What operating system are you using?
MacOS
Reproduction URL
Test.module.css
Describe your issue
Focus visible doesn't work using @apply with CSS modules as of 3.0 alpha 2. It works fine if I revert back to alpha 1.
The text was updated successfully, but these errors were encountered: