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

Incorrect intellisense for negative value with prefix #477

Closed
Zzombiee2361 opened this issue Feb 12, 2022 · 2 comments
Closed

Incorrect intellisense for negative value with prefix #477

Zzombiee2361 opened this issue Feb 12, 2022 · 2 comments

Comments

@Zzombiee2361
Copy link

What version of Tailwind CSS IntelliSense are you using?

v0.7.6

What version of Tailwind CSS are you using?

v3.0.11

What package manager are you using?

npm

What operating system are you using?

Linux

Describe your issue

Screenshot_20220212_180252

Intellisense suggest wrong class name, e.g. it suggest -t-m-0 when it should be t--m-0 when using t- prefix

@bradlc
Copy link
Contributor

bradlc commented Feb 15, 2022

Hey @Zzombiee2361. The completion list is correct as -t-m-0 is the preferred way to use negative values with a prefix. Unfortunately there was a bug in tailwindcss that caused the incorrect selector to be generated (.t--m-0 instead of .-t-m-0). This is now fixed so I recommend updating to the latest version of tailwindcss and using the -t-m-0 format instead of t--m-0. Note that t--m-0 will still work after updating so you can continue to use that if you prefer.

@bradlc bradlc closed this as completed Feb 15, 2022
@Zzombiee2361
Copy link
Author

Well, these issues (990, 5513) gave me the impression that the .t--m-0 is the intended version. But glad it's fixed anyway

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

No branches or pull requests

2 participants