Skip to content

Commit

Permalink
add active state on accent button for high contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
khamudom committed May 18, 2021
1 parent 6635a5f commit 49d4268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-components/src/styles/patterns/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ export const AccentButtonStyles = css`
color: ${SystemColors.HighlightText};
}
:host([appearance="accent"]) .control:hover {
:host([appearance="accent"]) .control:hover,
:host([appearance="accent"]:active) .control:active {
background: ${SystemColors.HighlightText};
border-color: ${SystemColors.Highlight};
color: ${SystemColors.Highlight};
Expand Down

0 comments on commit 49d4268

Please sign in to comment.