Skip to content

Commit 189919b

Browse files
committed
fix(a11y): remove deprecated css properties
1 parent 911ee44 commit 189919b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/style-utilities/src/styles/CommonStyles.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import type { IRawStyle } from '../MergeStyles';
22

3-
export const HighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';
3+
export const HighContrastSelector = '@media screen and (forced-colors: active)';
44
export const HighContrastSelectorWhite =
55
// eslint-disable-next-line @fluentui/max-len
6-
'@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)';
6+
'@media screen and (forced-colors: active) and (prefers-color-scheme: light)';
77
export const HighContrastSelectorBlack =
88
// eslint-disable-next-line @fluentui/max-len
9-
'@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)';
9+
'@media screen and (forced-colors: active) and (prefers-color-scheme: dark)';
1010
/**
1111
* @deprecated Use `HighContrastSelector`
1212
*/
13-
export const EdgeChromiumHighContrastSelector =
14-
'@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';
13+
export const EdgeChromiumHighContrastSelector = '@media screen and (forced-colors: active)';
1514

1615
export const ScreenWidthMinSmall = 320;
1716
export const ScreenWidthMinMedium = 480;

0 commit comments

Comments
 (0)