On this page

Sidebar

What Sidebar gives you and what your team does.

Conformance

Sidebar meets WCAG 2.2 level AA when used as described on these pages.

Keyboard

  • Tab moves through the links.
  • Ctrl/Cmd + B opens or collapses the sidebar.

What Sidebar gives you

  • aria-current="page" on the active item.
  • Collapsed items keep their name in a tooltip.
  • The phone drawer traps focus and closes with Esc.

What your team does

  • Wrap the sidebar content in a nav with a name.
  • Keep one item active per page.

WCAG criteria

Criterion Level How
1.4.1 Use of Color A The current page also has the yellow bar
2.4.1 Bypass Blocks A Your team adds a skip link to the main content