Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(theme-classic): fix SkipToContent without JS , refactor, make it public theming API #8204

Merged
merged 7 commits into from Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -42,6 +42,7 @@ export default function Layout(props: Props): JSX.Element {
<Navbar />

<div
id="main-wrapper"
mturoci marked this conversation as resolved.
Show resolved Hide resolved
className={clsx(
ThemeClassNames.wrapper.main,
styles.mainWrapper,
Expand Down
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