Skip to content

Commit

Permalink
HeaderMenu: Accessibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
furcan committed Nov 3, 2021
1 parent b4d01cd commit e663e44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/header/partials/HeaderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function HeaderMenu({ mobileMenuOnClickHandler }: IHeaderMenu): JSX.Element {
<li key={route?.id} className={styles.nav__ul__li}>
<Link href={route?.pathPage} as={`${process.env.appUrl}${route?.pathAs}`} passHref prefetch={route?.prefetch}>
<a
aria-label={`${constants.app.name} ${route?.name} ${_dbAppContent?.buttons?.module}`}
onClick={() => mobileMenuOnClickHandler(false)}
target={route?.isTargetBlank ? '_blank' : undefined}
className={[
Expand All @@ -31,7 +30,7 @@ function HeaderMenu({ mobileMenuOnClickHandler }: IHeaderMenu): JSX.Element {
].join(' ').trim()}
>
{route?.IconComponent && <route.IconComponent />}
<span>{route?.name}</span>
<span aria-label={`${constants.app.name} ${route?.name} ${_dbAppContent?.buttons?.module}`}>{route?.name}</span>
</a>
</Link>
</li>
Expand Down

0 comments on commit e663e44

Please sign in to comment.