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

TextColor of help content when Form.Item's validate status is warning is unreadable with light theme #32826

Open
1 task done
thisrabbit opened this issue Nov 11, 2021 · 1 comment

Comments

@thisrabbit
Copy link
Contributor

thisrabbit commented Nov 11, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

/

Just view the template page.

What is expected?

Warning message is as clear and readable as error message, or to say that the yellow color should be darker.

What is actually happening?

Warning message is quite difficult to recognize from white background.

Environment Info
antd 4.16.13
React 17.0.2
System Windows 10
Browser Chrome latest

WCAG Guidelines for Contrast suggests that the ratio 4.5:1 represents the minimum legibility (AA standard) on the web.

However the yellow color against the white bg's contrast ratio is 1.9:1 (calculated by https://webaim.org/resources/contrastchecker/), which is far from the recommended value, and of course is downgrading real user experiences.

I humbly request to make warning color on text be darker (border color is fine).

Plus:
In case you are interested in this, the contrast ratio between the red color in error status and the white bg is 3.26:1, which also fails the readability test in the link given before.

@UsamaMahboob
Copy link

I can work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants