Skip to content

Commit

Permalink
[IconButton][Joy] Fix large IconButton scaling (mui#33885)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherewaty authored and Daniel Rabe committed Nov 29, 2022
1 parent d4553fe commit b53e5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-joy/src/IconButton/IconButton.tsx
Expand Up @@ -52,7 +52,7 @@ const IconButtonRoot = styled('button', {
fontSize: theme.vars.fontSize.md,
}),
...(ownerState.size === 'lg' && {
'--Icon-fontSize': 'calc(var(--IconButton-size, 3rem) - 1.714)', // 1.75rem by default
'--Icon-fontSize': 'calc(var(--IconButton-size, 3rem) / 1.714)', // 1.75rem by default
minWidth: 'var(--IconButton-size, 3rem)',
minHeight: 'var(--IconButton-size, 3rem)',
fontSize: theme.vars.fontSize.lg,
Expand Down

0 comments on commit b53e5c6

Please sign in to comment.