Skip to content

fix(mosaic): share list item styles across Combobox, PhoneInput, Select and Menu - #11117

Merged
alexcarpenter merged 1 commit into
mainfrom
carp/mosaic-list-item-alignment
Dec 4, 2026
Merged

alexcarpenter merged 1 commit into
mainfrom
carp/mosaic-list-item-alignment

Conversation

@alexcarpenter

@alexcarpenter alexcarpenter commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Description

Combobox, PhoneInput, Select and Menu items now take their row styles from one shared file, src/styles/list-item.styles.ts. All four now line up and look the same.

  • Every item uses a 20px media box, an 8px gap and 6px inline padding, so text starts at the same edge in all four.
  • All four use normal font weight, primary text color, and --cl-color-neutral-alpha-100 for hover and active. Combobox and Select lose medium weight. PhoneInput rows lose their secondary text color. The Combobox and Select hover goes from 4% to 6%.
  • Each component keeps only its own focus handling, Select's described padding and Menu's negative variant.
  • The PhoneInput trigger flag moves 2px right to stay lined up with the flags in the list.

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:

Verified in swingset from evidence 20261204T180443Z-list-items, captured at fac407c95f9b; before 20261204T180545Z-list-items-control, captured at fac407c95f9b with uncommitted changes. Attached at pull request head fac407c95f9b.

Before After
Before: combobox After: combobox
Before: menu After: menu
Before: phone-input After: phone-input
Before: select After: select

@vercel

vercel Bot commented Dec 4, 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 Dec 4, 2026 8:38pm UTC
mosaic-docs Ready Ready Preview Dec 4, 2026 8:38pm UTC
swingset Ready Ready Preview Dec 4, 2026 8:38pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 36ceb89

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

This PR includes changesets to release 4 packages
Name Type
@clerk/mosaic Patch
@clerk/mosaic-docs Patch
@clerk/nextjs 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 Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds shared list-item styles for rows, media, labels, content, descriptions, and selection indicators. Combobox, Menu, and Select now use these styles in place of several component-specific styles. PhoneInput removes its country-item style, applies shared media styling to the country-search icon, and changes the trigger’s start padding.

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

Possibly related PRs

Suggested reviewers: austincalvelage, maxyinger

Merge Risk: Minimal · up to 36ceb

This change aligns list item styles across Combobox, PhoneInput, Select and Menu, with small intentional visual differences. No concrete merge-blocking risk was found. Run the test and build checks before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: sharing list item styles across Combobox, PhoneInput, Select and Menu. The raw summary confirms a new shared list-item.styles.ts and removed per-component item styles …
Description check Passed The description states that Combobox, PhoneInput, Select and Menu items now take row styles from a shared file, src/styles/list-item.styles.ts. It lists the 20px media box, 8px gap, font weight, hover…
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 main change: sharing list item styles across Combobox, PhoneInput, Select and Menu. The raw summary confirms a new shared list-item.styles.ts and removed per-component item styles in all four components. The 'fix(mosaic)' prefix is a conventional-commit scope and type, which is acceptable. The title is 80 characters, slightly longer than ideal but still clear.

Full details: Description check

Explanation

The description states that Combobox, PhoneInput, Select and Menu items now take row styles from a shared file, src/styles/list-item.styles.ts. It lists the 20px media box, 8px gap, font weight, hover color, and per-component exceptions. These details match the changed files in the raw summary. It also includes verification evidence and before/after screenshots.

  • 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 fac407c and 36ceb89.

Files selected for processing: 2

  • packages/mosaic/src/components/menu/menu.styles.ts
  • packages/mosaic/src/components/menu/menu.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 4 reviews per hour.

@pkg-pr-new

pkg-pr-new Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

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

@clerk/electron-passkeys

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

@clerk/eslint-plugin

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

@clerk/expo

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

@clerk/expo-biometrics

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

@clerk/expo-google-signin

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

@clerk/expo-native-components

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

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

@clerk/localizations

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

@clerk/mosaic

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 36ceb89

@blacksmith-sh

blacksmith-sh Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Matches Item text starts at the same edge in all four lists

Label text starts 34px from the row edge in all four (was 26px in Combobox, 30px in PhoneInput), with 20px media, 8px gap and 6px padding everywhere; Menu's gap went from 4px to 8px.

Row geometry

Open listMerge-baseThis PR 36ceb89f
ComboboxOpen list · ComboboxOpen list · Combobox
PhoneInputOpen list · PhoneInputOpen list · PhoneInput
SelectOpen list · SelectOpen list · Select
MenuOpen list · MenuOpen list · Menu

Also checked · 4 match

Matches Rows share weight, color and hover background
Matches PhoneInput trigger flag lines up with list flags
Matches Select described padding and Menu negative kept
Matches Menu check column matches the shared media box

Proof on 36ceb89f (from fac407c9) · Did Proof get it right? Yes · No

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

@alexcarpenter
alexcarpenter force-pushed the carp/mosaic-list-item-alignment branch from fac407c to 36ceb89 Compare December 4, 2026 20:34
@alexcarpenter
alexcarpenter enabled auto-merge (squash) December 4, 2026 20:42
@alexcarpenter
alexcarpenter merged commit b149473 into main Dec 4, 2026
61 checks passed
@alexcarpenter
alexcarpenter deleted the carp/mosaic-list-item-alignment branch December 4, 2026 20:44

This branch was successfully deployed

2 active deployments
Preview – swingset — 36ceb89f Deployed Dec 4, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 36ceb89f Deployed Dec 4, 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