Skip to content

Commit

Permalink
Fix button shrinking
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Oct 6, 2023
1 parent 0d56d6e commit b30db0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/ui/components/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ const StyledButton = styled('button', {
})(),
boxShadow: variant === 'outline' ? `${theme.button.border} 0 0 0 1px inset` : 'none',
borderRadius: theme.input.borderRadius,
// Making sure that the button never shrinks below its minimum size
flexShrink: 0,

'&:hover': {
color: variant === 'ghost' ? theme.color.secondary : null,
Expand Down

0 comments on commit b30db0e

Please sign in to comment.