Skip to content

Commit

Permalink
[joy] Fix large IconButton scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
cherewaty committed Aug 10, 2022
1 parent 472e284 commit 70489ac
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 70489ac

Please sign in to comment.