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

Accessibility improvement: match aria-label to tag text for "read more" links #749

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

curt-mitch
Copy link
Sponsor Contributor

@curt-mitch curt-mitch commented Oct 31, 2023

Currently when performing a Lighthouse analysis of the demo deployment of this template, the accessibility (a11y) score is 92 for both mobile and desktop with the following warnings:

  • Background and foreground colors do not have a sufficient contrast ratio.
  • Elements with visible text labels do not have matching accessible names.

Having the aria-label in the "Read More" link element of the post list item more closely match the tag's text ("Read more") increases the accessibility score to 96 for both mobile and desktop.

The color contrast warning can be fixed with different primary/secondary colors in the Tailwind configuration, but I think changing that should be up to @timlrx and/or individual users of the template.

Copy link

vercel bot commented Oct 31, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @timlrx on Vercel.

@timlrx first needs to authorize it.

Copy link

vercel bot commented Nov 1, 2023

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

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2023 3:58am

@timlrx
Copy link
Owner

timlrx commented Nov 1, 2023

Thanks for the patch. Agree to leave the color decisions to the users - I just rotate it every major version for a fresh coat of paint.

@timlrx timlrx merged commit 12b4ed2 into timlrx:main Nov 1, 2023
2 checks passed
@curt-mitch curt-mitch deleted the a11y-score-boost branch November 1, 2023 17:15
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.

None yet

2 participants