Skip to content

Commit b1d47f7

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

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/style-utilities/etc/style-utilities.api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export { DefaultFontStyles }
8181
export { DefaultPalette }
8282

8383
// @public @deprecated (undocumented)
84-
export const EdgeChromiumHighContrastSelector = "@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";
84+
export const EdgeChromiumHighContrastSelector = "@media screen and (forced-colors: active)";
8585

8686
// @public (undocumented)
8787
export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20250411.001";
@@ -153,13 +153,13 @@ export type GlobalClassNames<IStyles> = Record<keyof IStyles, string>;
153153
export const hiddenContentStyle: IRawStyle;
154154

155155
// @public (undocumented)
156-
export const HighContrastSelector = "@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";
156+
export const HighContrastSelector = "@media screen and (forced-colors: active)";
157157

158158
// @public (undocumented)
159-
export const HighContrastSelectorBlack = "@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)";
159+
export const HighContrastSelectorBlack = "@media screen and (forced-colors: active) and (prefers-color-scheme: dark)";
160160

161161
// @public (undocumented)
162-
export const HighContrastSelectorWhite = "@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)";
162+
export const HighContrastSelectorWhite = "@media screen and (forced-colors: active) and (prefers-color-scheme: light)";
163163

164164
export { IAnimationStyles }
165165

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)