Skip to content

Commit

Permalink
fix: update color on active state for accent button in high contrast …
Browse files Browse the repository at this point in the history
…mode (#18246)

* add active state on accent button for high contrast

* Change files
  • Loading branch information
khamudom authored May 19, 2021
1 parent a9eda24 commit d93694f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "add active state on accent button for high contrast",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
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 d93694f

Please sign in to comment.