Update button animation behavior

This commit is contained in:
Hazem Krimi
2021-01-12 23:26:43 +01:00
parent e80c3eba11
commit 29dbb51c44
-13
View File
@@ -58,22 +58,9 @@ const Btn = styled.button<Props>`
: 'inherit'};
}
&:focus {
color: ${({ variant, dark, theme }) =>
variant === 'outline'
? dark
? theme.colors.dark.background
: theme.colors.light.background
: 'inherit'};
}
&:hover::before {
transform: scaleX(1);
}
&:focus::before {
transform: scaleX(1);
}
`;
const Button: FC<Props & { className?: string }> = ({