Skip to content

Commit

Permalink
fix(theme-classic): Use native href for skip to content facebook#6411.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Oct 11, 2022
1 parent 3558a09 commit ee90a0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default function Layout(props: Props): JSX.Element {
<Navbar />

<div
id="main-wrapper"
className={clsx(
ThemeClassNames.wrapper.main,
styles.mainWrapper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ export default function SkipToContent(): JSX.Element {
ref={containerRef}
role="region"
aria-label={translate({id: 'theme.common.skipToMainContent'})}>
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" className={styles.skipToContent} onClick={handleSkip}>
<a
href="#main-wrapper"
className={styles.skipToContent}
onClick={handleSkip}>
<Translate
id="theme.common.skipToMainContent"
description="The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation">
Expand Down

0 comments on commit ee90a0b

Please sign in to comment.