diff --git a/src/components/atoms/icon-button.astro b/src/components/atoms/icon-button.astro index 9a75130..d91548a 100644 --- a/src/components/atoms/icon-button.astro +++ b/src/components/atoms/icon-button.astro @@ -9,6 +9,7 @@ export interface Props { target?: astroHTML.JSX.AnchorHTMLAttributes['target']; href: string; size: IconButtonSize; + 'aria-label'?: astroHTML.JSX.AnchorHTMLAttributes['aria-label']; } const sizeMap: Record = { @@ -16,7 +17,7 @@ const sizeMap: Record = { large: 'w-9 h-9', }; -const { icon, href, target, size } = Astro.props; +const { icon, href, target, size, ...rest } = Astro.props; --- diff --git a/src/components/atoms/sidebar-item.tsx b/src/components/atoms/sidebar-item.tsx index ee1777d..0887f13 100644 --- a/src/components/atoms/sidebar-item.tsx +++ b/src/components/atoms/sidebar-item.tsx @@ -27,6 +27,7 @@ const SidebarItem = ({ section, icon, title = '' }: SidebarItemProps) => { ${active ? 'bg-primary-600 text-white' : 'bg-white text-gray-400 hover:bg-primary-600 hover:text-white'} `} aria-current={active ? 'page' : undefined} + aria-label={`${section} section`} > diff --git a/src/components/organisms/project-timeline-item.astro b/src/components/organisms/project-timeline-item.astro index f690cd7..a6a5fcd 100644 --- a/src/components/organisms/project-timeline-item.astro +++ b/src/components/organisms/project-timeline-item.astro @@ -46,7 +46,11 @@ const { alt, ...sharedImageProps } = { />
- {socials?.map(({ icon, url }) => )} + { + socials?.map(({ icon, url, name: socialName }) => ( + + )) + }
- {socials.map(({ icon, url }) => ( - + {socials.map(({ icon, url, name }) => ( + ))} ) diff --git a/src/components/organisms/work-timeline-item.astro b/src/components/organisms/work-timeline-item.astro index f5acf4a..c83b83d 100644 --- a/src/components/organisms/work-timeline-item.astro +++ b/src/components/organisms/work-timeline-item.astro @@ -22,7 +22,11 @@ const WorkTimelineItem = 'div';
- {job.socials?.map(({ icon, url }) => )} + { + job.socials?.map(({ icon, url, name }) => ( + + )) + }
@@ -44,8 +46,8 @@ const section: Section = 'main'; { socials.length > 0 && (
- {socials.map(({ icon, url: iconUrl }) => ( - + {socials.map(({ icon, url: iconUrl, name }) => ( + ))}
)