We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab7c68 commit c294a3aCopy full SHA for c294a3a
src/cdk/a11y/high-contrast-mode/high-contrast-mode-detector.ts
@@ -92,9 +92,16 @@ export class HighContrastModeDetector implements OnDestroy {
92
testElement.remove();
93
94
switch (computedColor) {
95
+ // Pre Windows 11 dark theme.
96
case 'rgb(0,0,0)':
97
+ // Windows 11 dark themes.
98
+ case 'rgb(45,50,54)':
99
+ case 'rgb(32,32,32)':
100
return HighContrastMode.WHITE_ON_BLACK;
101
+ // Pre Windows 11 light theme.
102
case 'rgb(255,255,255)':
103
+ // Windows 11 light theme.
104
+ case 'rgb(255,250,239)':
105
return HighContrastMode.BLACK_ON_WHITE;
106
}
107
return HighContrastMode.NONE;
0 commit comments