Skip to content

Commit 4a75ec3

Browse files
author
Kubit
committed
Fix width button error
1 parent 2a93517 commit 4a75ec3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/button/button.styled.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export const ButtonStyled = styled.button<IButtonStyled>`
4949
align-items: center;
5050
justify-content: center;
5151
text-align: ${({ alignText }) => alignText ?? 'left'};
52-
min-width: ${props => props.minWidth};
5352
cursor: pointer;
5453
flex-direction: ${props =>
5554
props.$iconPosition === IconPositionType.LEFT ? 'row' : 'row-reverse'};
@@ -86,7 +85,7 @@ export const ButtonStyled = styled.button<IButtonStyled>`
8685
${({ $styles, $sizeStyles }) => setTokens(ButtonStateType.DEFAULT, $styles, $sizeStyles)}
8786
}
8887
}
89-
88+
min-width: ${props => props.minWidth};
9089
width: ${props => (props.$fullWidth ? '100%' : 'auto')};
9190
9291
&::after {

0 commit comments

Comments
 (0)