1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-05 15:38:57 -05:00

fix missing title attribute on icon-only menu links

This commit is contained in:
2022-03-07 19:51:51 -05:00
parent a917b5f81d
commit 19394c1fb7

View File

@@ -70,7 +70,7 @@ const MenuItem = ({ icon: ItemIcon, href, text, current, className }: MenuItemPr
if (href) { if (href) {
return ( return (
<NextLink href={href} prefetch={false} passHref={true}> <NextLink href={href} prefetch={false} passHref={true}>
<Link className={className} current={current}> <Link className={className} current={current} title={text} aria-label={text}>
{linkContent} {linkContent}
</Link> </Link>
</NextLink> </NextLink>