Skip to content

Commit

Permalink
fix(Button): use bkg color as text color in focus mode
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jan 23, 2023
1 parent 3d15510 commit 2e19882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
danger1,
danger2,
radiusM,
backgroundColor,
} from '../design/@generated/themes';

interface ButtonProps {
Expand Down Expand Up @@ -187,7 +188,7 @@ const StyledButton = styled(
:hover:not([disabled]),
:focus:not([disabled]),
:active:not([disabled]) {
color: ${textColor};
color: ${backgroundColor};
}
`}
Expand Down

0 comments on commit 2e19882

Please sign in to comment.