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

Not enough contrast on color 9 according to lighthouse #30

Open
silveltman opened this issue Jul 14, 2023 · 1 comment
Open

Not enough contrast on color 9 according to lighthouse #30

silveltman opened this issue Jul 14, 2023 · 1 comment

Comments

@silveltman
Copy link

silveltman commented Jul 14, 2023

I get a warning in lighthouse. I'm using tomato9 as button background, with white as text color.

Screenshot 2023-07-14 at 20 45 35

@colinhemphill
Copy link

The 9 step is only guaranteed to reach a 3:1 ratio for 600 weight font at 19px.

https://www.radix-ui.com/colors/docs/tests/contrast#aa-large-text

Since that's well documented I believe this is expected. You'll need to use a different step for that font size.

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

No branches or pull requests

2 participants