Skip to content

Commit

Permalink
fix(Button): fix hover states of secondary and inverted buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Marruk authored and glenngijsberts committed Oct 23, 2023
1 parent 005825f commit 1f29e28
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const StyledButton = styled.button<StyledButtonProps>`
background-image: unset;
&:hover {
background-image: unset;
background: color-mix(in srgb, currentColor, transparent 76%);
}
`};
Expand All @@ -179,9 +179,10 @@ const StyledButton = styled.button<StyledButtonProps>`
css`
background-color: ${color.failureBackground};
color: ${color.failure};
background-image: unset;
@media (prefers-color-scheme: dark) {
background-image: unset;
&:hover {
background: color-mix(in srgb, currentColor, transparent 76%);
}
&:focus::after {
Expand Down Expand Up @@ -227,9 +228,10 @@ const StyledButton = styled.button<StyledButtonProps>`
css`
background-color: ${color.background};
color: ${color.action};
background-image: unset;
@media (prefers-color-scheme: dark) {
background-image: unset;
&:hover {
background: color-mix(in srgb, currentColor, transparent 84%);
}
`};
Expand Down

0 comments on commit 1f29e28

Please sign in to comment.