Improvements for the color contrast check against default theme colors. #6484
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Premise: I haven't looked at the code.
When setting the text color to a value that produces an insufficient contrast ratio with the default background color, there's no warning:
Custom text color vs. default background (white in this case):
Vice-versa, a custom background that produces an insufficient contrast ratio with the default text color, does show the warning:
It would be great to have the check work also with the default background color.
Also wondering what happens when in the future themes will be able to provide their own background / text colors, see for example #6404:
The text was updated successfully, but these errors were encountered: