unocss / unocss

The instant on-demand atomic CSS engine.
https://unocss.dev
MIT License
16.48k stars 833 forks source link

[Bugs] Arbitrary variants group regex not match in VsCode Extention + not work expected #1523

Closed harrytran998 closed 2 years ago

harrytran998 commented 2 years ago

Here is the code in React.

image

As you can see, the VsCode extension does not work correctly, but the weird behavior presents here when I add another class name same as in the arbitrary group --> The suggestion worked both - but the generator doesn't work.

image

image

But when I do not group the arbitrary anymore --> Worked as expected.

<ul className="list-none p0 [&>li]:py5 [&>li]:border-b [&>li]:border-b-gray-300/80">

image

So hope your team can fix this 😆. Thanks!

QiroNT commented 2 years ago

Can you check if you're using @unocss/transformer-variant-group? If yes then please provide a full reproduction, thanks. Also check #1419, #1468. Both issues have just been fixed recently, so try an update and see if it still happens.