Skip to content

Commit

Permalink
fix(paymentrequest): [a11y] cancel button focus color feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulFasola committed Apr 4, 2021
1 parent c696912 commit 7a70a56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ exports[`PaymentRequest Detailed Should be fully string customizable 1`] = `
text-align: center;
}
.c8:hover {
.c8:hover,
.c8:focus {
color: #ffffff;
background-color: #f7931a;
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/PaymentRequest/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ export const CancelButton = styled.button`
color: ${(p) => _(p.theme, 'primary', 'color')};
text-align: center;
&:hover {
&:hover,
&:focus {
color: ${(p) => _(p.theme, 'primary', 'backgroundColor')};
background-color: #f7931a;
}
Expand Down

0 comments on commit 7a70a56

Please sign in to comment.