Skip to content

fix(mosaic): show switcher and menu rows in the primary color - #10889

Merged
alexcarpenter merged 4 commits into
mainfrom
carp/mosaic-switcher-item-colors
Nov 18, 2026
Merged

alexcarpenter merged 4 commits into
mainfrom
carp/mosaic-switcher-item-colors

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Description

Switcher rows and menu items now show their text and leading icons in the primary foreground color at rest, instead of grey that only darkened on hover. Design feedback was that the grey rows looked washed out once the switcher was used in a real app.

  • Trailing icons stay secondary: the active ✓ and the submenu chevrons in Switcher.ItemTrailing and Menu.Indicator.
  • The active ✓ in the Switch account submenu moves from Menu.Media to Menu.Indicator, so it picks up the trailing color.
  • Switcher.ItemLabel's variant stays for compatibility, but default and interactive now look the same.
  • The Linux baseline for switcher.visual.test.tsx has not been regenerated (pnpm test:visual:update needs Docker), so that screenshot test is expected to fail until it is.
Before After
Switcher before Switcher after

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 18, 2026 6:46pm UTC
mosaic-docs Error Error Nov 18, 2026 6:46pm UTC
swingset Ready Ready Preview Nov 18, 2026 6:46pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e60268b

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

This PR includes changesets to release 2 packages
Name Type
@clerk/mosaic Patch
@clerk/swingset 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

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e60268b and 59bea39.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Menu items and switcher rows now use the primary foreground color for text and leading icons. Trailing switcher icons and menu indicators use the secondary foreground color. The active-session checkmark now renders in Menu.Indicator. The interactive variant documentation no longer says that its color brightens on hover.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • clerk/javascript#10494: Updates menu and interactive-row color rules, which overlap with the item color changes in this PR.

Suggested reviewers: austincalvelage, prestonwebdev, ephem

Merge Risk: Low · previous review c3361

The change makes switcher rows and menu items render in the primary color, with trailing icons still secondary. The author says the Linux visual-test baseline has not been regenerated and expects that screenshot test to fail until it is. Regenerate the baseline, or accept the failure explicitly, before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: switcher and menu rows in mosaic now use the primary color. The changeset matches this. The title follows the conventional fix(scope) form and is specific.
Description check Passed The description states the change. Switcher rows and menu items now show text and leading icons in the primary foreground color at rest. It lists trailing icon handling, the Menu.Media to Menu.Indicat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description states the change. Switcher rows and menu items now show text and leading icons in the primary foreground color at rest. It lists trailing icon handling, the Menu.Media to Menu.Indicator move for the checkmark, the ItemLabel variant behavior, and the visual test baseline status. This matches the summarized files.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: Some configured repositories could not be included in this review. Cross-repository analysis may be incomplete. Please check linked-repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between dca6a65 and c336184.

Files selected for processing: 5

  • .changeset/mosaic-switcher-item-colors.md
  • packages/mosaic/src/components/menu/menu.styles.ts
  • packages/mosaic/src/components/switcher/switcher-item.styles.ts
  • packages/mosaic/src/components/switcher/switcher-item.tsx
  • packages/mosaic/src/features/switcher/switcher.view.tsx
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10889

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10889

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10889

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10889

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10889

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10889

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10889

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@10889

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@10889

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10889

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10889

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10889

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10889

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10889

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10889

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10889

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10889

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10889

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10889

@clerk/react

npm i https://pkg.pr.new/@clerk/react@10889

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10889

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10889

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10889

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10889

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10889

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10889

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10889

commit: 59bea39

@blacksmith-sh

blacksmith-sh Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Matches Switcher rows in primary color

At rest the switcher rows and their leading icons turn from grey to the primary color, while the Settings and Switch account chevrons stay grey.

Merge-baseThis PR c3361842
Switcher popupSwitcher popup

Merge-base

Computed colors

This PR c3361842

Computed colors

Also checked · 1 match

Matches Switch account submenu rows

Proof on c3361842 · mocked: Clerk API (The Switcher story renders SwitcherView from the fixtures in stories/fixtures/sw...) · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@alexcarpenter
alexcarpenter merged commit 3c36ad4 into main Nov 18, 2026
96 of 98 checks passed
@alexcarpenter
alexcarpenter deleted the carp/mosaic-switcher-item-colors branch November 18, 2026 19:19

This branch was successfully deployed

2 active deployments
Preview – swingset — 59bea395 Deployed Nov 18, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 59bea395 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants