@angular/cdk 14.2.1 → 14.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/a11y.mjs CHANGED
@@ -2385,9 +2385,16 @@ class HighContrastModeDetector {
2385
2385
  const computedColor = ((computedStyle && computedStyle.backgroundColor) || '').replace(/ /g, '');
2386
2386
  testElement.remove();
2387
2387
  switch (computedColor) {
2388
+ // Pre Windows 11 dark theme.
2388
2389
  case 'rgb(0,0,0)':
2390
+ // Windows 11 dark themes.
2391
+ case 'rgb(45,50,54)':
2392
+ case 'rgb(32,32,32)':
2389
2393
  return 2 /* HighContrastMode.WHITE_ON_BLACK */;
2394
+ // Pre Windows 11 light theme.
2390
2395
  case 'rgb(255,255,255)':
2396
+ // Windows 11 light theme.
2397
+ case 'rgb(255,250,239)':
2391
2398
  return 1 /* HighContrastMode.BLACK_ON_WHITE */;
2392
2399
  }
2393
2400
  return 0 /* HighContrastMode.NONE */;