Skip to content

Commit

Permalink
fix(button): fix button active styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vickonrails committed Apr 6, 2021
1 parent 8be1517 commit 1cfc16c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/button/button.tsx
Expand Up @@ -153,13 +153,16 @@ const BaseButton = ({ shape, size, loading, disabled }: ButtonProps) => css`
text-decoration: none;
}
:active {
background: ${theme.colors.gray[4]}
}
:hover {
transform: ${!loading && !disabled && `translateY(-1px)`};
}
:hover:active {
transform: translateY(0px);
}
:active {
background: ${theme.colors.gray[4]};
}
`

const StyledSolidButton = ({ buttonType, variant }: ButtonProps) =>
Expand Down

0 comments on commit 1cfc16c

Please sign in to comment.