Skip to content

fix(editor): add uppercase mark to inspector text panel - #3850

Merged
felipefreitag merged 3 commits into
resend:canaryfrom
svargas-dev:fix/uppercase-mark-inspector-3849
Nov 13, 2026
Merged

felipefreitag merged 3 commits into
resend:canaryfrom
svargas-dev:fix/uppercase-mark-inspector-3849

Conversation

@svargas-dev

@svargas-dev svargas-dev commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

InspectorText derives mark active state from the hardcoded MARK_NAMES list. "uppercase" was missing, so the inspector Text panel never tracked the Uppercase mark even though FORMAT_ITEMS renders its toggle and the bubble menu (BubbleMenuUppercase) works. The toggle rendered but stayed visually inactive (aria-pressed always false).

Adds "uppercase" to MARK_NAMES, matching the schema and the bubble menu.

Changes

  • packages/editor/src/ui/inspector/text.tsx: add "uppercase" to MARK_NAMES
  • packages/editor/src/ui/inspector/text.spec.tsx: new test asserting the uppercase toggle renders and reflects active mark state
  • .changeset/inspector-uppercase-mark.md: patch changeset for @react-email/editor

Validation

  • pnpm biome check on changed files, clean
  • pnpm --filter @react-email/editor typecheck, clean
  • pnpm test in packages/editor: 55 unit files / 523 tests and 4 browser files / 19 tests, all pass
  • pnpm --filter @react-email/editor build: regenerated dist/ui/index.mjs / index.cjs contain "uppercase" in MARK_NAMES (dist is gitignored, not committed)

Closes #3849


Summary by cubic

Fixes the inspector text panel so the Uppercase toggle correctly reflects the active mark state. MARK_NAMES was missing "uppercase", so the toggle rendered but always appeared inactive even when the mark was applied.

Written for commit d83bcff. Summary will update on new commits.

View guided diff

MARK_NAMES missed 'uppercase', so inspector marks state never
tracked the mark while the bubble menu toggle worked.

Closes resend#3849
@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@svargas-dev is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d83bcff

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

This PR includes changesets to release 1 package
Name Type
@react-email/editor 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

The toggle was always visible. Only its pressed state was wrong.
@felipefreitag
felipefreitag merged commit 1c0a117 into resend:canary Nov 13, 2026
9 of 11 checks passed
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.

Inspector Text panel omits Uppercase mark toggle (MARK_NAMES missing "uppercase")

2 participants