Skip to main content
  1. Docs
  2. Components
  3. Console frame

Sidebar

A console's navigation: links only, in groups, one level of nesting, every item in the Tab order.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<nav>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A console's sections, in AppShell's sidebar.
  • A docs site's pages, as this one's.
Not for

02

Anatomy

  1. 1sidebar-group-label<div>A group's label, tracked small capitals.
  2. 2current<a aria-current="page">The current page: the Ember bar, weight 600.
  3. 3sidebar-item-badge<span>A count or a Badge; hidden in the rail.
  4. 4category<button>A category: it opens and closes its items.
  5. 5disabled<a aria-disabled="true">Outside the plan: greyed, out of the Tab order, still found by a screen reader.

03

Do and don't

Destinations, not actions
DoPages to go to, each a link.
Don'tInvite and Export among the pages: actions belong on the page.

04

Content

  • Labels are the pages' titles, short: Users, Audit logs.
  • Group labels name an area: Directory, Security.
  • Icons, round, for destinations; on every top item, or none.
Next — SidebarAPI