icon position fix

This commit is contained in:
Artem Tarasov 2020-07-16 12:37:22 +03:00
parent b5c066c957
commit e42d5d2c3f

View File

@ -185,13 +185,17 @@ const StyledButton = styled(ButtonWrapper).attrs((props) => ({
.btnIcon,
.loader {
display: inline-block;
vertical-align: text-top;
}
.loader {
vertical-align: ${props => ( props.size === 'large' || props.size === 'base' )
? 'middle'
: props.size === 'medium'
? 'text-bottom'
: 'text-top'};
}
}
${props => props.label && css`
.btnIcon,