The Skip Navigation or Skip Link is an accessibility component that allows motor and sight impaired users to skip navigation and scroll to to content identified as the main content of the page. This is also useful for sighted users relying on the keyboard for navigation.
The willow-skip-nav is hidden visibly until a user navigates or focuses on the component with their keyboard, at which point it will be displayed.
<div class="willow-skip-nav">
<a href="" class="willow-skip-nav__link" aria-label="skip to main content">Skip to Content</a>
</div>
- Required
- Restrictions
- Should Contain: willow-skip-nav elements
- willow-skip-nav component should be included only once on a site and be placed before the willow-page-header component
- If the site has a global alert, the willow-skip-nav should be placed after the willow-global-alert component
- Required
- Restrictions
- Should Contain: text
- Set the
href
value of willow-skip-nav__link equal to theid
value of the willow-page-content component - willow-skip-nav__link needs an
aria-label
value if the text content of the link doesn't clearly represent where the user will go after clicking the link