Merge pull request #749 from curt-mitch/a11y-score-boost

Accessibility improvement: match aria-label to tag text for "read more" links
This commit is contained in:
Timothy 2023-11-01 13:50:42 +08:00 committed by GitHub
commit 12b4ed236f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ export default function Home({ posts }) {
<Link <Link
href={`/blog/${slug}`} href={`/blog/${slug}`}
className="text-primary-500 hover:text-primary-600 dark:hover:text-primary-400" className="text-primary-500 hover:text-primary-600 dark:hover:text-primary-400"
aria-label={`Read "${title}"`} aria-label={`Read more: "${title}"`}
> >
Read more &rarr; Read more &rarr;
</Link> </Link>