Skip to content

Commit

Permalink
Make Form.Button uniform in size with the rest of the Controls
Browse files Browse the repository at this point in the history
  • Loading branch information
domyen committed Jun 23, 2020
1 parent 01d58ee commit 37b4df5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const ButtonWrapper = styled.button<ButtonWrapperProps>(
}
: {};
},
({ theme, tertiary, inForm }) =>
({ theme, tertiary, inForm, small }) =>
tertiary
? {
background:
Expand All @@ -125,6 +125,8 @@ const ButtonWrapper = styled.button<ButtonWrapperProps>(
boxShadow: `${theme.input.border} 0 0 0 1px inset`,
borderRadius: theme.input.borderRadius,

...(inForm && small ? { padding: '10px 16px' } : {}),

'&:hover': {
background:
theme.base === 'light'
Expand Down

0 comments on commit 37b4df5

Please sign in to comment.