Skip to content

Comments

fix(tailwind): pseudo selectors#2963

Merged
gabrielmfern merged 2 commits intocanaryfrom
fix/tailwind-pseudo-selectors
Feb 18, 2026
Merged

fix(tailwind): pseudo selectors#2963
gabrielmfern merged 2 commits intocanaryfrom
fix/tailwind-pseudo-selectors

Conversation

@bukinoshita
Copy link
Member

@bukinoshita bukinoshita commented Feb 18, 2026

Summary by cubic

Fixes Tailwind rule splitting to treat pseudo-selector utilities (e.g., :hover, :focus) as fully non-inlinable, preventing them from being inlined as base styles.

  • Bug Fixes
    • Added pseudo selector detection in splitMixedRule (checks for PseudoClassSelector/PseudoElementSelector) and returns the whole rule as non-inlinable.
    • Added a test to ensure utilities like .btn:hover are not inlined and remain in the non-inlinable set.

Written for commit 184a013. Summary will update on new commits.

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Feb 18, 2026 1:21pm
react-email-demo Ready Ready Preview, Comment Feb 18, 2026 1:21pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: c9ae4b1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@react-email/tailwind Patch
@react-email/components Patch
playground Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 18, 2026

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/tailwind@2963

commit: c9ae4b1

@bukinoshita bukinoshita marked this pull request as ready for review February 18, 2026 13:07
@gabrielmfern gabrielmfern merged commit 698f962 into canary Feb 18, 2026
16 checks passed
@gabrielmfern gabrielmfern deleted the fix/tailwind-pseudo-selectors branch February 18, 2026 13:23
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