Skip to content

Commit b7b0b5f

Browse files
authored
fix: disabled Calendar buttons get disabled color styles in high contrast mode (#35450)
1 parent 8c7c11a commit b7b0b5f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: disabled Calendar buttons get disabled color styles in high contrast mode",
4+
"packageName": "@fluentui/react-calendar-compat",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/react-components/react-calendar-compat/library/src/components/CalendarDay/useCalendarDayStyles.styles.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ const useDisabledStyleStyles = makeStyles({
128128
'&, &:disabled, & button': {
129129
color: tokens.colorNeutralForegroundDisabled,
130130
pointerEvents: 'none',
131+
132+
// add this explicitly for aria-disabled buttons that don't get default forced-colors disabled styles
133+
'@media (forced-colors: active)': {
134+
color: 'GrayText',
135+
},
131136
},
132137
},
133138
});

0 commit comments

Comments
 (0)