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

A11y: fix card button contrast #774

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Jul 3, 2024

For #682.

Before

The contrast ratio of white on pink is too low: 2.22: 1

image

After

Instead of white on pink, use white on read, like the other buttons on the front page. With #773, the ratio will be 4.53:1, above the WCAG AA minimum of 4.5.

image

Copy link

vercel bot commented Jul 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ep2024 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 9:47am

@patrick91
Copy link
Member

@hugovk thanks, but I'd prefer to keep the pink if possible, the red is too in-your-face :D

maybe we can find another shade of pink we can use?

@hugovk
Copy link
Contributor Author

hugovk commented Jul 3, 2024

Would you like to have a play with the colour picker at https://webaim.org/resources/contrastchecker/?fcolor=FFFFFF&bcolor=FF8B9D and see if there's one you like that meets WCAG AA for normal text (4.5:1)?

Co-authored-by: Patrick Arminio <[email protected]>
@vercel vercel bot temporarily deployed to Preview – ep2024 July 4, 2024 09:47 Inactive
Copy link
Member

@egeakman egeakman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this!

@egeakman egeakman merged commit dc7fd33 into EuroPython:main Jul 8, 2024
3 of 5 checks passed
@hugovk hugovk deleted the a11y-card-button-contrast branch July 8, 2024 11:36
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

Successfully merging this pull request may close these issues.

3 participants