Skip to content

Commit

Permalink
fix(skip-to-content): add explicit href to component, add id to… (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
jendowns authored and vpicone committed Dec 12, 2019
1 parent 34e46f7 commit 068fec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const Container = ({ children, homepage, theme }) => {
role="presentation"
tabIndex="-1"
/>
<main aria-hidden={overlayVisible} className={containerClassNames}>
<main
id="main-content"
aria-hidden={overlayVisible}
className={containerClassNames}
>
{children}
</main>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Header = ({ children }) => {
return (
<>
<ShellHeader aria-label="Header" className={header}>
<SkipToContent className={skipToContent} />
<SkipToContent href="#main-content" className={skipToContent} />
<HeaderMenuButton
className={cx('bx--header__action--menu', headerButton)}
aria-label="Open menu"
Expand Down

1 comment on commit 068fec5

@vercel
Copy link

@vercel vercel bot commented on 068fec5 Dec 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.