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 red button contrast #773

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Jul 3, 2024

For #682.

The WCAG AA min contrast ratio is 4.5.

Before

contrast ratio: 3.99:1 https://webaim.org/resources/contrastchecker/?fcolor=FFFFFF&bcolor=FF0000

image

After

contrast ratio: 4.53:1 https://webaim.org/resources/contrastchecker/?fcolor=FFFFFF&bcolor=EE0000

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 3, 2024 0:36am

@vercel vercel bot temporarily deployed to Preview – ep2024 July 3, 2024 12:36 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.

Looks good to me. Thank you Hugo!

@egeakman egeakman merged commit 6de9c9c into EuroPython:main Jul 3, 2024
3 of 5 checks passed
@hugovk hugovk deleted the a11y-red-button-contrast branch July 3, 2024 12:50
egeakman pushed a commit that referenced this pull request Jul 8, 2024
For #682.

# Before

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


![image](https://github.com/EuroPython/website/assets/1324225/96018656-bf95-497e-8007-2ccc74c98329)


# 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](https://github.com/EuroPython/website/assets/1324225/0848febf-ed2c-48bb-8880-52bcfc5f81d6)

---------

Co-authored-by: Patrick Arminio <[email protected]>
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.

2 participants