Skip to content

Commit

Permalink
fix(LandingNav): add a11y role
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Aug 4, 2021
1 parent 1cb18ba commit 5f9f24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/LandingNav/LandingNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const LandingNav = ({ routes }: Props): JSX.Element => {
'-translate-x-full': !expanded,
}
)}
role="navigation"
>
{routes.map((route) => (
<LandingNavLink key={route.id} title={route.title} to={route.path}>
Expand Down Expand Up @@ -61,6 +62,7 @@ const LandingNav = ({ routes }: Props): JSX.Element => {
'bg-opacity-0': !expanded,
}
)}
role="banner"
/>
</React.Fragment>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/LandingNav/LandingNavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const LandingNavLink = ({
children,
}: Props): JSX.Element => (
<Tooltip className="mb-16" placement="left" title={title}>
<Link to={to}>
<Link to={to} role="link">
<span
className={classNames(
'block px-0 pt-0 pb-3 mx-6 my-0 border-solid border-b-6 border-light',
Expand Down

0 comments on commit 5f9f24b

Please sign in to comment.