You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mosaic): remove the card edge padding from switcher popups - #11087
The Card spacing rebuild (#11047) added edge padding above the card's first part and above the branding. The switcher popups (UserButton, OrganizationSwitcher, Switcher) render their own header and rows inside Card.Root, so they picked up 12px of extra space above the header and above "Secured by Clerk". This removes it from the switcher popups only.
Card.Root now reads that edge padding from a private --_cl-card-edge var, which defaults to the same value, so other cards keep their spacing.
SwitcherPopup sets --_cl-card-edge: 0px on its card.
Checklist
pnpm test runs as expected.
pnpm build runs as expected.
(If applicable) JSDoc comments have been added or updated for any package exports
Verified in swingset from evidence 20261202T210018Z-switcher-padding, captured at 2a839b79efa8; before 20261202T210139Z-switcher-padding-control, captured at 2a839b79efa8 with uncommitted changes. Attached at pull request head 2a839b79efa8.
Card edge padding now uses the --_cl-card-edge custom property. Switcher popup styles set this property to 0px, and Card.Root receives those styles. A changeset records a patch release for @clerk/mosaic and describes the popup spacing change.
The popup spacing fix is narrow and low risk. When branding is hidden, the bottom spacing may be tighter than before. Worth a quick visual check before merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: removing card edge padding from the switcher popups in the mosaic package. The changeset removes the extra top spacing above the header and the Clerk branding in the U…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description states that the Card spacing rebuild added 12px of edge padding above the card header and branding, and that switcher popups (UserButton, OrganizationSwitcher, Switcher) picked up that…
Full details: Title check
Explanation
The title names the main change: removing card edge padding from the switcher popups in the mosaic package. The changeset removes the extra top spacing above the header and the Clerk branding in the UserButton, OrganizationSwitcher, and Switcher popups, and the title's 'fix(mosaic)' prefix matches the patch changeset. The title is specific and concise.
Full details: Description check
Explanation
The description states that the Card spacing rebuild added 12px of edge padding above the card header and branding, and that switcher popups (UserButton, OrganizationSwitcher, Switcher) picked up that extra space. It says the fix removes the padding from those popups only by adding a private --_cl-card-edge variable, defaulting to the prior value, and setting it to 0px in SwitcherPopup. This matches the changeset summary and the style changes in card.styles.ts and switcher-popup.styles.ts. The description is specific and directly related to the changeset, so it passes.
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.
Switcher popup loses extra top and branding padding
Header moved from 12px to 0px below the popup top, the padding above "Secured by Clerk" went from 12px to 0px, and the popup shrank from 426px to 402px.
Merge-base
This PR 2a839b79
Also checked · 2 match
UserButton and OrganizationSwitcher popups lose the padding too Card story cards keep their edge padding · Narrowed from "Cards outside the switcher popups, such as the plain Card story, keep the same edge padding as before."
Proof on 2a839b79 · Did Proof get it right? Yes · No
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Preserve the bottom padding when branding is disabled.
When renderBranding is false, Card.Root applies root.end. The switcher override makes this padding 0px, so the popup also loses its bottom edge spacing. The stated change targets the top gaps. Keep EDGE for the bottom padding.
Included review availability: This review used your included allowance. 5 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 6 reviews per hour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Card spacing rebuild (#11047) added edge padding above the card's first part and above the branding. The switcher popups (
UserButton,OrganizationSwitcher,Switcher) render their own header and rows insideCard.Root, so they picked up 12px of extra space above the header and above "Secured by Clerk". This removes it from the switcher popups only.Card.Rootnow reads that edge padding from a private--_cl-card-edgevar, which defaults to the same value, so other cards keep their spacing.SwitcherPopupsets--_cl-card-edge: 0pxon its card.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Verified in swingset from evidence
20261202T210018Z-switcher-padding, captured at2a839b79efa8; before20261202T210139Z-switcher-padding-control, captured at2a839b79efa8with uncommitted changes. Attached at pull request head2a839b79efa8.