mirror of
https://github.com/facebook/docusaurus.git
synced 2026-01-01 08:53:11 +00:00
fix(v2): add landmark for skip to content link (#3650)
This commit is contained in:
parent
d9bfe84cd1
commit
33f94c5d8a
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue