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] @unocss/transformer-variant-group transforms empty variant when there is extra space after ( and before ) and between classes #828

Closed
itsmnthn opened this issue Apr 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@itsmnthn
Copy link

itsmnthn commented Apr 14, 2022

It seems @unocss/transformer-variant-group generates extra class on class attribute when there is space after ( and before )

For example below code transforms

<div class="before:( dark:bg-dark bg-light opacity-0 ) hover:( before:opacity-100 )" ></div>

as below

<div class="before: before:dark:bg-dark before:bg-light before:opacity-0 before: hover: hover:before:opacity-100 hover:" ></div>

For each extra space inside () we have empty variant as mentioned in above example

@itsmnthn itsmnthn changed the title [bug] @unocss/transformer-variant-group extra empty variant when there is space after ( and before ) [bug] @unocss/transformer-variant-group transforms empty variant when there is extra space after ( and before ) and between classes Apr 14, 2022
@david-plugge
Copy link

Same issue here and vscode does not provide any information about the class without a space.

@antfu antfu added the bug Something isn't working label Jul 20, 2022
@antfu antfu closed this as completed in f660cfa Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants