Skip to content

Fix invalid Tailwind v4 selector syntax generated by upgrade tool - #329

Closed
dmitriy-kostianetskiy with Copilot wants to merge 2 commits into
feat/tailwind-v4from
copilot/sub-pr-324-again
Closed

dmitriy-kostianetskiy with Copilot wants to merge 2 commits into
feat/tailwind-v4from
copilot/sub-pr-324-again

Conversation

Copilot AI commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

The Tailwind upgrade tool (npx @tailwindcss/upgrade) incorrectly converted descendant selectors to invalid *:[[...]] and **:[[...]] syntax, which is not valid Tailwind v4.

Changes

packages/ui/src/components/table.tsx

  • *:[[role=checkbox]] → [&_[role=checkbox]]

packages/ui/src/components/command.tsx

  • **:[[cmdk-group-heading]] → [&_[cmdk-group-heading]]
  • **:[[cmdk-group]] → [&_[cmdk-group]]
  • **:[[cmdk-input]] → [&_[cmdk-input]]
  • **:[[cmdk-item]] → [&_[cmdk-item]]

Example

// Before (invalid)
className="*:[[role=checkbox]]:translate-y-[2px]"

// After (valid Tailwind v4)
className="[&_[role=checkbox]]:translate-y-[2px]"

The [&_element] syntax is the correct Tailwind v4 descendant selector notation.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI commented Jan 27, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • tailwindcss.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Upgrade Tailwind CSS to version 4 and configure Fix invalid Tailwind v4 selector syntax generated by upgrade tool Jan 27, 2026
@dmitriy-kostianetskiy

Copy link
Copy Markdown
Collaborator

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.

2 participants