Skip to content

Commit

Permalink
[web-components] fix: disabled switch state in high-contrast mode (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
davatron5000 authored Jan 14, 2025
1 parent e7e2987 commit 1e110d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix: update disabled switch styles to GrayText for high-contrast mode",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
4 changes: 4 additions & 0 deletions packages/web-components/src/switch/switch.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,9 @@ export const styles = css`
:host(${checkedState}:active) .checked-indicator {
background-color: ButtonFace;
}
:host(:disabled) .checked-indicator,
:host(${checkedState}:disabled) .checked-indicator {
background-color: GrayText;
}
`),
);

0 comments on commit 1e110d6

Please sign in to comment.