Skip to content

Commit

Permalink
Merge pull request #651 from reload/DDFLSBP-180-link-tag-aria-label
Browse files Browse the repository at this point in the history
Add aria label to link
  • Loading branch information
JacobArrow authored Nov 15, 2023
2 parents 0d8c510 + fcd088e commit 1f35646
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/apps/menu/menu-navigation-list/MenuNavigationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,17 @@ const MenuNavigationItem: FC<MenuNavigationItemProps> = ({
return (
<li className="link-filters mb-16">
<div className="link-filters__tag-wrapper">
<a href={link} className="link-tag link-tag link-filters__tag">
<a
href={link}
className="link-tag link-tag link-filters__tag"
aria-label={`${name} ${dataMap[dataId] || ""}`}
>
{name}
</a>
{dataMap[dataId] !== 0 && (
<span className="link-filters__counter">{dataMap[dataId]}</span>
<span className="link-filters__counter" aria-hidden="true">
{dataMap[dataId]}
</span>
)}
</div>
</li>
Expand Down

0 comments on commit 1f35646

Please sign in to comment.