Skip to content

Commit 6cc1890

Browse files
fix(ui): Update org switcher avatar alignment and radii (#9148)
1 parent ea75149 commit 6cc1890

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Reduce the organization avatar's border radius in the `OrganizationSwitcher` trigger so it stays proportional at the smaller trigger size.

packages/ui/src/components/OrganizationSwitcher/OrganizationSwitcherTrigger.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const OrganizationSwitcherTrigger = withAvatarShimmer(
4141
focusRing={false}
4242
sx={[
4343
t => ({
44-
padding: `${t.space.$1} ${t.space.$2}`,
44+
padding: `${t.space.$1} ${t.space.$2} ${t.space.$1} ${t.space.$1}`,
4545
position: 'relative',
4646
'&[aria-expanded="true"]': {
4747
backgroundColor: 'var(--alpha)',
@@ -62,6 +62,7 @@ export const OrganizationSwitcherTrigger = withAvatarShimmer(
6262
gap={3}
6363
size='xs'
6464
organization={organization}
65+
avatarSx={t => ({ borderRadius: t.radii.$sm })}
6566
sx={{ maxWidth: '30ch' }}
6667
/>
6768
)}

0 commit comments

Comments
 (0)