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

Variant Groups + Arbitrary Variants = Doesn't Work #1419

Closed
AaronBeaudoin opened this issue Aug 15, 2022 · 4 comments · Fixed by #1426
Closed

Variant Groups + Arbitrary Variants = Doesn't Work #1419

AaronBeaudoin opened this issue Aug 15, 2022 · 4 comments · Fixed by #1426

Comments

@AaronBeaudoin
Copy link

AaronBeaudoin commented Aug 15, 2022

I think this problem is best explained with a dead simple example:

<div class="sm:bg-red-800 sm:text-red-400">Test 1</div>
<div class="sm:(bg-red-800 text-red-400)">Test 2</div>
<div class="[&]:bg-red-800 [&]:text-red-400">Test 3</div>
<div class="[&]:(bg-red-800 text-red-400)">Test 4</div>

image

Basically, when using Windi Variant Groups via @unocss/transformer-variant-group in combination with Tailwind's Arbitrary Variants feature/syntax, things seem to stop working. Is this a bug, or is there some limitation that keeps us from doing this?

@antfu
Copy link
Member

antfu commented Aug 15, 2022

Fixed already by #1415

@antfu antfu closed this as completed Aug 15, 2022
@AaronBeaudoin
Copy link
Author

This issue is not fixed in v0.45.7, which includes #1415 according to the changelog.

Please see my minimal reproduction here and kindly re-open the issue if you would.

@Jurool
Copy link

Jurool commented Aug 17, 2022

This problem does exist, it is not fixed

@VladimirCores
Copy link

Its not fixed, "Variant Groups" does not work in "unocss": "^0.46.0"

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.

5 participants