Skip to content

Commit

Permalink
fix(v2): add landmark for skip to content link (#3650)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Oct 28, 2020
1 parent d9bfe84 commit 33f94c5
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 33f94c5

Please sign in to comment.