Skip to content

Match the group-data-checked selector across Tailwind versions - #2652

Merged
kmcginnes merged 1 commit into
mainfrom
fix-tests-for-minor-and-patch-bumps-group-variant-css-assertion
Nov 24, 2026
Merged

kmcginnes merged 1 commit into
mainfrom
fix-tests-for-minor-and-patch-bumps-group-variant-css-assertion

Conversation

@kmcginnes

Copy link
Copy Markdown
Collaborator

Summary

Tailwind 4.3.5 writes the group-data-checked selector in a different but equivalent form, so the index.css variant test fails on Bump the minor-and-patch group (#2649). The test now checks only the part our index.css owns, :where(.group)[data-state="checked"], like the other cases in the same table.

User-facing: none

-  ["group-data-checked:flex", ':where(.group)[data-state="checked"] *'],
+  ["group-data-checked:flex", ':where(.group)[data-state="checked"]'],

Evidence

Before: index.css custom variants > group-data-checked:flex matches Radix's data-state fails with tailwindcss 4.3.5, which emits :is(:where(.group)[data-state="checked"] .group-data-checked\:flex).

After: agent-tested: the test passes with tailwindcss 4.3.3 (current main) and with 4.3.5 (the #2649 lockfile).

Merge Danger

Door: two-way

Impact: none, test only


🤖 Written by an AI agent on my behalf.

@kmcginnes kmcginnes left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@kmcginnes
kmcginnes merged commit f9a438e into main Nov 24, 2026
4 checks passed
@kmcginnes
kmcginnes deleted the fix-tests-for-minor-and-patch-bumps-group-variant-css-assertion branch November 24, 2026 01:39
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.

1 participant