Skip to content

Commit

Permalink
fix(v2): add landmark for skip to content link
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Oct 27, 2020
1 parent d9bfe84 commit ef485a2
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ function SkipToContent(): JSX.Element {
};

return (
<button
type="button"
tabIndex={0}
className={styles.skipToContent}
onKeyDown={handleSkip}>
Skip to main content
</button>
<nav aria-label="Skip navigation links">
<button
type="button"
tabIndex={0}
className={styles.skipToContent}
onKeyDown={handleSkip}>
Skip to main content
</button>
</nav>
);
}

Expand Down

0 comments on commit ef485a2

Please sign in to comment.