Skip to content

Commit e2497dc

Browse files
authored
docs(a11y): update high contrast description in readme (#18836)
Updates an outdated description about how the high contrast detection works. Fixes #18148.
1 parent 93f6b30 commit e2497dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cdk/a11y/a11y.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ class:
184184

185185
### Targeting high contrast users
186186
The `a11y` package offers a mixin that allows you to target users that have the Windows high
187-
contrast mode turned on, via a media query. To target high contrast users, you can wrap your
188-
styles with the `cdk-high-contrast` mixin:
187+
contrast mode turned on. To target high contrast users, you can wrap your styles with the
188+
`cdk-high-contrast` mixin. The mixin works by targeting a CSS class which is added to the `body`
189+
by the CDK when high contrast mode is detected at runtime.
189190

190191
```scss
191192
button {

0 commit comments

Comments
 (0)