Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/org-switcher-trigger-avatar-radius.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/ui': patch
---

Reduce the organization avatar's border radius in the `OrganizationSwitcher` trigger so it stays proportional at the smaller trigger size.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Document the trigger padding change in the changeset.

The release note mentions the avatar-radius adjustment but omits the accompanying left-padding change. Please describe both user-visible updates so the @clerk/ui changelog accurately reflects this patch.

This follows the stated PR objective, which includes both trigger padding and avatar-radius changes.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.changeset/org-switcher-trigger-avatar-radius.md at line 5, Update the
changeset release note for the OrganizationSwitcher trigger to document both
user-visible changes: the reduced avatar border radius and the accompanying
left-padding adjustment. Keep the existing avatar-radius description and add the
padding change without altering unrelated changeset metadata.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const OrganizationSwitcherTrigger = withAvatarShimmer(
focusRing={false}
sx={[
t => ({
padding: `${t.space.$1} ${t.space.$2}`,
padding: `${t.space.$1} ${t.space.$2} ${t.space.$1} ${t.space.$1}`,
position: 'relative',
'&[aria-expanded="true"]': {
backgroundColor: 'var(--alpha)',
Expand All @@ -62,6 +62,7 @@ export const OrganizationSwitcherTrigger = withAvatarShimmer(
gap={3}
size='xs'
organization={organization}
avatarSx={t => ({ borderRadius: t.radii.$sm })}
sx={{ maxWidth: '30ch' }}
/>
)}
Expand Down
Loading