Skip to content

Conversation

@thecrypticace
Copy link
Contributor

Fixes tailwindlabs/tailwindcss-intellisense#1481

We were detecting when we needed to apply the * and ** variants and even detecting attribute selectors. However we only cleaned up the attribute selectors when they were data-* or aria-* attributes. This resulted in a "loop" of sorts because we'd:

  • See something like [&_>_[foo]]:flex
  • Notice that it needs a * variant
  • Add the * variant, giving *:[&_>[foo]]:flex
  • But fail to cleanup the remainder of the variant

This then meant that we'd see the *:[&_>[foo]]:flex the next time we checked, notice that it still needed a * variant, and repeat…

This PR fixes this case to clean up the selector.

@thecrypticace thecrypticace requested a review from a team as a code owner October 22, 2025 11:06
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 this pull request may close these issues.

Diagnostic suggestCanonicalClasses suggests looping fix

3 participants