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

Classes inside arbitrary variants are incorrectly being prefixed #8626

Closed
thecrypticace opened this issue Jun 14, 2022 · 2 comments · Fixed by #8773
Closed

Classes inside arbitrary variants are incorrectly being prefixed #8626

thecrypticace opened this issue Jun 14, 2022 · 2 comments · Fixed by #8773
Assignees

Comments

@thecrypticace
Copy link
Contributor

Classes inside arbitrary variants are prefixed when they shouldn't be as they're not tailwind utilities.

The utility [.foo_&]:tw-text-red-400 incorrectly generates a selector referencing .tw-foo instead of .foo

See: #8299 (comment)

Reproduction: https://play.tailwindcss.com/GCMzAzdKNY

@thecrypticace thecrypticace self-assigned this Jun 14, 2022
@thecrypticace thecrypticace changed the title Classes inside arbitrary variants are being prefixed Classes inside arbitrary variants are incorrectly being prefixed Jun 14, 2022
@pandeyprashant123-coder
Copy link

pandeyprashant123-coder commented Jun 14, 2022

I put \ in front of '.foo_&' and it is some how giving selector .foo

https://play.tailwindcss.com/LWujxXokrG

@brandonmcconnell
Copy link
Contributor

@thecrypticace I built upon your example and created an example to test classes, IDs, and attributes.

It appears IDs work as expected, but both classes and attributes experience bugs when using prefixes, and when not using prefixes, only the attributes examples break:

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.

3 participants