Skip to content

Commit e086f4a

Browse files
Fix height of contains icon button variant
1 parent fd5329f commit e086f4a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Button.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const StyledButton = styled.button<StylingProps & { children: ReactElemen
9393
vertical-align: top;
9494
margin-right: ${(props) => (props.size === SIZES.SMALL ? '4' : '6')}px;
9595
margin-top: ${(props) => (props.size === SIZES.SMALL ? '0' : '-1')}px;
96-
margin-bottom: ${(props) => (props.size === SIZES.SMALL ? '0' : '-2')}px;
96+
margin-bottom: ${(props) => (props.size === SIZES.SMALL ? '0' : '-1')}px;
9797
9898
/* Necessary for js mouse events to not glitch out when hovering on svgs */
9999
pointer-events: none;
@@ -147,6 +147,8 @@ export const StyledButton = styled.button<StylingProps & { children: ReactElemen
147147
svg {
148148
display: block;
149149
margin: 0;
150+
height: ${props.size === SIZES.SMALL ? '14' : '16'}px;
151+
width: ${props.size === SIZES.SMALL ? '14' : '16'}px;
150152
}
151153
padding: ${props.size === SIZES.SMALL ? '7' : '12'}px;
152154
`}

0 commit comments

Comments
 (0)