Skip to content

High contrast mode detector enhancements #22258

Open
@anton-matsyshyn

Description

@anton-matsyshyn

🚀 feature request

Description

For now it's possible to check only whether the user uses a black-on-white or white-on-black theme with HighContrastModeDetector.getHighContrastMode method. It would be great to have functionality, which makes possible to get all system colors in code, that are used in the current theme. That's important, because HC mode users may set some custom color theme, and application should still be responsive.

Describe the solution you'd like

Personally I think it's a good point to extend HighContrastModeDetector with a method, which returns all system colors. Plus add CUSTOM value to HighContrastMode enum, which is returned from getHighContrastMode when user doesn't use default theme.

Describe alternatives you've considered

For now it's possible to work with system colors in css, but it would be great to have same functionality in code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/a11yfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions