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

[Bug]: Classes added with injectGlobal can't be used with variants #494

Open
phaux opened this issue Oct 18, 2023 · 1 comment
Open

[Bug]: Classes added with injectGlobal can't be used with variants #494

phaux opened this issue Oct 18, 2023 · 1 comment
Labels
🐞 Bug Bug or Bug fixes

Comments

@phaux
Copy link

phaux commented Oct 18, 2023

Reproduction

https://stackblitz.com/edit/tw-in-js-twind-xx8vpi?file=index.html

injectGlobal`
.test {
  @apply bg-purple-300;
}
`
<div class="hover:test">Test</div>

Describe the bug

hover modifier doesn't work.

Severity

annoyance

System Info

{
  "@twind/core": "https://esm.sh/@twind/core@1.1.3?dev",
  "@twind/preset-tailwind": "https://esm.sh/@twind/preset-tailwind@1.1.4?dev"
}

Additional Information

No response

@phaux phaux added the 🐞 Bug Bug or Bug fixes label Oct 18, 2023
@stackblitz
Copy link

stackblitz bot commented Oct 18, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@phaux phaux changed the title [Bug]: Classes added with injectGlobal can'r be used with variants [Bug]: Classes added with injectGlobal can't be used with variants Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant