Skip to content

feat(mosaic)!: remove Menu.Indicator and add checkbox and radio items to Menu - #11000

Merged
alexcarpenter merged 2 commits into
mainfrom
carp/mosaic-remove-menu-indicator
Nov 25, 2026
Merged

alexcarpenter merged 2 commits into
mainfrom
carp/mosaic-remove-menu-indicator

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Description

Removes Menu.Indicator so that "indicator" only names a part that follows checked state, as in Base UI, and adds checkbox and radio items to Menu. This is a breaking change. The changeset has the old→new table and a git grep to find usages.

  • New Menu.CheckboxItem, Menu.RadioGroup and Menu.RadioItem, with Menu.CheckboxItemIndicator and Menu.RadioItemIndicator, headless and styled, modelled on Base UI 1.5.0. Checkable items keep the menu open on click unless closeOnClick is passed.
  • The styled indicators default to keepMounted and show a checkmark when given no children. Like Select.ItemIndicator in feat(mosaic)!: rename Select and Combobox Option parts to Item and add Select.ItemIndicator #10997, every row keeps the check's column and only the checked row shows it.
  • Menu.Indicator and the size prop on Menu.Media are removed. Any other trailing mark, such as the ActionMenu spinner, now goes in a trailing Menu.Media.
  • The Switcher's accounts flyout is now a radio group named "Switch account". The active account has aria-checked="true" in place of aria-current="true".
Before After
Accounts menu before Accounts menu 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 24, 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 24, 2026 10:52pm UTC
mosaic-docs Ready Ready Preview Nov 24, 2026 10:52pm UTC
swingset Ready Ready Preview Nov 24, 2026 10:52pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e62d91b

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

This PR includes changesets to release 3 packages
Name Type
@clerk/mosaic Minor
@clerk/mosaic-docs 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 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 14 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available. Your 65 included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 875db23 and e62d91b.

Files selected for processing: 1

  • packages/mosaic/src/features/user-button/__tests__/user-button.feature.test.tsx

No actionable comments were generated in the recent review.

Walkthrough

The menu primitives and styled components now support checkbox items, radio groups, radio items, and checked-state indicators. The standalone Menu.Indicator component and Menu.Media size prop are removed. The Switcher uses radio items for account selection, and ActionMenu renders its status spinner in Menu.Media. Tests, stories, and documentation reflect the updated API.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • clerk/javascript#10763: Renames the Menu indicator part class, which overlaps with the indicator API removed here.
  • clerk/javascript#10436: Adds pending ActionMenu indicators, which this change replaces with trailing Menu.Media.

Suggested reviewers: austincalvelage, ephem, maxyinger

Merge Risk: Minimal · previous review 875db

This change removes Menu.Indicator and the Menu.Media size prop, and adds checkbox and radio items to Menu. The Switcher's account list now uses radio semantics. No concrete defect was found in the reviewed code. Before merging, confirm that the test and build checks pass.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two main changes: removing Menu.Indicator (a breaking change) and adding checkbox and radio items to Menu. Both are present in the changeset, including the menu.tsx, menu.parts.ts,…
Description check Passed The description states the removal of Menu.Indicator and the size prop on Menu.Media, and the addition of Menu.CheckboxItem, Menu.RadioGroup, Menu.RadioItem and their indicators. It also covers the Sw…
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: Title check

Explanation

The title names the two main changes: removing Menu.Indicator (a breaking change) and adding checkbox and radio items to Menu. Both are present in the changeset, including the menu.tsx, menu.parts.ts, and primitives files that add the new items and the removed indicator.

Full details: Description check

Explanation

The description states the removal of Menu.Indicator and the size prop on Menu.Media, and the addition of Menu.CheckboxItem, Menu.RadioGroup, Menu.RadioItem and their indicators. It also covers the Switcher accounts change to a radio group, which matches the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 07bcfd3 and 875db23.

Files selected for processing: 24

  • .changeset/remove-menu-indicator.md
  • packages/mosaic/src/components/action-menu/action-menu.test.tsx
  • packages/mosaic/src/components/action-menu/action-menu.tsx
  • packages/mosaic/src/components/menu/index.ts
  • packages/mosaic/src/components/menu/menu.doc.ts
  • packages/mosaic/src/components/menu/menu.parts.ts
  • packages/mosaic/src/components/menu/menu.styles.ts
  • packages/mosaic/src/components/menu/menu.test.tsx
  • packages/mosaic/src/components/menu/menu.tsx
  • packages/mosaic/src/features/switcher/__tests__/switcher.feature.test.tsx
  • packages/mosaic/src/features/switcher/switcher.view.tsx
  • packages/mosaic/src/primitives/menu/README.md
  • packages/mosaic/src/primitives/menu/index.ts
  • packages/mosaic/src/primitives/menu/menu-checkable-context.ts
  • packages/mosaic/src/primitives/menu/menu-checkbox-item.tsx
  • packages/mosaic/src/primitives/menu/menu-item-indicator.tsx
  • packages/mosaic/src/primitives/menu/menu-radio-group.tsx
  • packages/mosaic/src/primitives/menu/menu-radio-item.tsx
  • packages/mosaic/src/primitives/menu/menu.doc.ts
  • packages/mosaic/src/primitives/menu/menu.test.tsx
  • packages/mosaic/src/primitives/menu/parts.ts
  • packages/mosaic/src/styles/index.ts
  • packages/swingset/src/stories/menu.component.mdx
  • packages/swingset/src/stories/menu.component.stories.tsx
Linked repositories identified

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

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

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

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

@clerk/electron-passkeys

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

@clerk/eslint-plugin

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

@clerk/expo

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

@clerk/expo-biometrics

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

@clerk/expo-google-signin

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

@clerk/expo-native-components

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

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

@clerk/localizations

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

@clerk/mosaic

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: e62d91b

@blacksmith-sh

blacksmith-sh Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Matches Accounts menu: picking an account moves the check

Tested on 875db235 — Picking braden.wiggins closed the menu and moved aria-checked="true" and the only visible check to it; both rows keep a 19px check column. On base the rows were plain menuitems and the check stayed on colin.

Recording

Watch full video · Original footage · 0:00 Open the accounts menu · 0:01 Pick braden.wiggins · 0:02 Reopen the menu

Merge-baseThis PR 875db235
Static checkCheck follows pick

Merge-base

Accounts DOM

This PR 875db235

Accounts DOM

Also checked · 4 match

Matches Checkbox items toggle and keep the menu open
Matches Switcher accounts flyout is a "Switch account" radio group
Matches ActionMenu spinner sits in a trailing Menu.Media
Matches Menu.Indicator and Menu.Media size are removed

Proof on e62d91b8 (from 875db235) · mocked: ActionMenu scratch page (No Swingset story puts an ActionMenu action into a lasting pending state, so a t...) · Did Proof get it right? Yes · No

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

@alexcarpenter
alexcarpenter merged commit 9cff7be into main Nov 25, 2026
59 checks passed
@alexcarpenter
alexcarpenter deleted the carp/mosaic-remove-menu-indicator branch November 25, 2026 19:40

This branch was successfully deployed

2 active deployments
Preview – swingset — e62d91b8 Deployed Nov 24, 2026 by vercel[bot]
Preview – clerk-js-sandbox — e62d91b8 Deployed Nov 24, 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