Get enable/disable status and of accessibility Colour inversion mode

后端 未结 2 503
难免孤独
难免孤独 2021-01-14 10:10

In my application i need to make some UI changes when user enable accessibility colour inversion mode.

Do we have any api to check enable/disable status of colour in

2条回答
  •  太阳男子
    2021-01-14 11:09

    Color inversion does not change the contrast ratio between colors, so if you have white text on a gray background to start, and you claim that the inverted black on dark gray is hard to see, then it is just as hard for some users to see the original text.

    Perhaps the original text color should have been black? Ultimately, per WCAG criterion 1.4.3 on Contrast, you should have a minimum ratio of 4.5:1. See this post on the UX Stack Exchange for how to compute using black vs. white text.

提交回复
热议问题