fix(v2): add landmark for skip to content link (#3650)

This commit is contained in:
Alexey Pyltsyn 2020-10-28 13:22:15 +03:00 committed by GitHub
parent d9bfe84cd1
commit 33f94c5d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);
}