From 3960b9eb1665e155078f0ed7273ee37ca465eebb Mon Sep 17 00:00:00 2001 From: r-freeman Date: Sun, 22 Jan 2023 00:12:13 +0000 Subject: [PATCH] Fix minor accessibility issue --- components/SocialLink.tsx | 5 +++-- pages/index.tsx | 6 +++--- pages/projects.tsx | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/SocialLink.tsx b/components/SocialLink.tsx index 4b1348c..02380f4 100644 --- a/components/SocialLink.tsx +++ b/components/SocialLink.tsx @@ -3,12 +3,13 @@ import {ElementType} from 'react' type SocialLink = { href: string + ariaLabel: string icon: ElementType } -export function SocialLink({icon: Icon, href}: SocialLink) { +export function SocialLink({icon: Icon, href, ariaLabel}: SocialLink) { return ( - + diff --git a/pages/index.tsx b/pages/index.tsx index cd1ef43..c762077 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -222,17 +222,17 @@ export default function Home({articles}: { articles: Article[] }) {
diff --git a/pages/projects.tsx b/pages/projects.tsx index e4358ce..80a3720 100644 --- a/pages/projects.tsx +++ b/pages/projects.tsx @@ -83,7 +83,7 @@ export default function Projects() {

{project.link.label}