Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cdk/a11y): use native media query for high contrast detection #29678

Merged
merged 1 commit into from
Sep 3, 2024

Commits on Sep 2, 2024

  1. feat(cdk/a11y): use native media query for high contrast detection

    Changes the `cdk.high-contrast` mixin to use a native media query instead of a custom CSS classes. The advantage is that we no longer need to depend on the `HighContrastModeDetector` to add a class that we can target.
    
    BREAKING CHANGE:
    * Since `cdk.high-contrast` targets a media query instead of a class, the specificity of the styles it emits is lower than before.
    crisbeto committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    025654d View commit details
    Browse the repository at this point in the history