Skip to content

Commit 1e110d6

Browse files
authored
[web-components] fix: disabled switch state in high-contrast mode (#33637)
1 parent e7e2987 commit 1e110d6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "fix: update disabled switch styles to GrayText for high-contrast mode",
4+
"packageName": "@fluentui/web-components",
5+
"email": "rupertdavid@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/web-components/src/switch/switch.styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,9 @@ export const styles = css`
141141
:host(${checkedState}:active) .checked-indicator {
142142
background-color: ButtonFace;
143143
}
144+
:host(:disabled) .checked-indicator,
145+
:host(${checkedState}:disabled) .checked-indicator {
146+
background-color: GrayText;
147+
}
144148
`),
145149
);

0 commit comments

Comments
 (0)