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

refactor: Fix lighthouse accessibility issue in footer links #1203

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Dec 4, 2024

Can see this from local lighthouse runs or pagespeed insights.

temp

While the message seems to suggest a contrast issue, this isn't actually the case -- our contrast ratios are 6.53:1 & 6.01:1 w/ light & dark preferences respectively, both hitting the WCAG AA standards. In fact, changing this to #fff on #000 still does nothing to dismiss the message. The actual issue, which I found unclear at least, is that links aren't meant to rely on color alone and so we need text decoration here. Reasonable enough.

Comment on lines +15 to +18
/**
* Ideally kept sync'd with the markdown links:
* https://github.com/preactjs/preact-www/blob/f68e65aadbd19b042921cc175aa256f3aa248768/src/style/markdown.css#L18
*/
Copy link
Member Author

Choose a reason for hiding this comment

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

As this comment would suggest, our new footer link styles should match the markdown links but we're relying on copy/paste for the moment. It's only a few lines and I don't imagine it'll change often.

@JoviDeCroock JoviDeCroock merged commit 550fcde into master Dec 4, 2024
5 checks passed
@JoviDeCroock JoviDeCroock deleted the refactor/footer-links branch December 4, 2024 06:53
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