@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/dialog/index.d.ts +1 -1
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +8 -1
- package/esm2020/dialog/dialog-config.mjs +2 -2
- package/esm2020/listbox/listbox.mjs +9 -12
- package/esm2020/menu/menu-item.mjs +10 -2
- package/esm2020/menu/menu-trigger.mjs +10 -2
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +7 -0
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/dialog.mjs +1 -1
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/listbox.mjs +8 -11
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2015/menu.mjs +18 -2
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2020/a11y.mjs +7 -0
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/dialog.mjs +1 -1
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/listbox.mjs +8 -11
- package/fesm2020/listbox.mjs.map +1 -1
- package/fesm2020/menu.mjs +18 -2
- package/fesm2020/menu.mjs.map +1 -1
- package/listbox/index.d.ts +0 -1
- package/menu/index.d.ts +5 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
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 */;
|