Skip to content

Commit a8ccac8

Browse files
authored
fix: XL avatar size in ActionButton (#9149)
1 parent 148d760 commit a8ccac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-spectrum/s2/src/ActionButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ export const btnStyles = style<ButtonRenderProps & ActionButtonStyleProps & Togg
251251
}, getAllowedOverrides());
252252

253253
// Matching icon sizes. TBD.
254-
const avatarSize = {
254+
const avatarSize: Record<NonNullable<ActionButtonStyleProps['size']>, number> = {
255255
XS: 14,
256256
S: 16,
257257
M: 20,
258258
L: 22,
259-
X: 26
259+
XL: 26
260260
} as const;
261261

262262
export const ActionButtonContext = createContext<ContextValue<Partial<ActionButtonProps>, FocusableRefValue<HTMLButtonElement>>>(null);

0 commit comments

Comments
 (0)