Navigation, sheets and help

Give destinations real links and keep contextual help close to the task.

Try tabs and a sheet

A notebook of sketches from a morning walk.

Field notes

Three leaves on the same branch, sketched on a morning walk.

Reading status To read

View markup
<div class="spec-stack"><div class="spec-tabs" role="tablist" aria-label="Notebook sections"><button type="button" class="ex-tab" id="spec-tab-summary" role="tab" aria-selected="true" tabindex="0" aria-controls="spec-panel-summary">Summary</button><button type="button" class="ex-tab" id="spec-tab-notes" role="tab" aria-selected="false" tabindex="-1" aria-controls="spec-panel-notes">Notes</button></div><div class="spec-panel" id="spec-panel-summary" role="tabpanel" aria-labelledby="spec-tab-summary" tabindex="0"><p>A notebook of sketches from a morning walk.</p></div><div class="spec-panel" id="spec-panel-notes" role="tabpanel" aria-labelledby="spec-tab-notes" tabindex="0" hidden><p>Look closely at the spaces between the leaves.</p></div>
      <div class="spec-actions"><button class="ex-button ex-button--secondary" data-open type="button">Open details sheet</button></div>
      <dialog class="ex-dialog spec-sheet" id="spec-reader" aria-labelledby="spec-reader-title">
      <div class="ex-dialog-header"><h3 id="spec-reader-title" data-title>Field notes</h3></div>
      <div class="ex-dialog-body spec-stack"><p>Three leaves on the same branch, sketched on a morning walk.</p>
      <p class="spec-muted">Reading status <strong data-reading-state>To read</strong></p></div>
      <div class="ex-dialog-actions"><button class="ex-button ex-button--primary" type="button" data-close>Close</button></div>
    </dialog></div>

Tooltips

Add a short description to a control that already has a clear name.

View markup
<div class="atlas-stack" data-ex-recipe="tooltips">
  <div class="atlas-actions"><button class="ex-button ex-button--secondary" type="button" id="atlas-save" aria-pressed="false"><span class="ex-icon ex-icon--add" aria-hidden="true"></span> Save notebook</button>
    <span class="ex-tooltip" id="atlas-save-tip" hidden>Keep this notebook in your reading list.</span></div>
  <p class="atlas-status" role="status"></p>
</div>
Use in a project

Toolbars

Group related actions. Use arrow keys to move between them.

The morning ferry leaves at eight.

View markup
<div class="atlas-stack" data-ex-recipe="toolbars">
  <div class="ex-context-toolbar" aria-label="Note formatting">
    <button type="button" class="ex-button ex-button--secondary" data-style="bold" aria-pressed="false">Bold</button>
    <button type="button" class="ex-button ex-button--secondary" data-style="italic" aria-pressed="false">Italic</button>
    <button type="button" class="ex-button ex-button--secondary" data-style="underline" aria-pressed="false">Underline</button></div>
  <p class="atlas-note" data-note>The morning ferry leaves at eight.</p>
</div>
Use in a project

Sheets

Keep the current page in view while someone changes a setting.

A slow walk by the harbour.

Reading settings

Text size
View markup
<div class="atlas-stack" data-ex-recipe="sheets">
  <div class="atlas-actions"><button class="ex-button ex-button--secondary" type="button" id="atlas-open-settings">Reading settings</button></div>
  <p class="atlas-note" data-note>A slow walk by the harbour.</p>
  <p class="atlas-status" role="status"></p>
  <dialog class="ex-dialog ex-sheet ex-sheet--responsive" id="atlas-settings" aria-labelledby="atlas-sheet-title">
    <div class="ex-dialog-header"><h3 id="atlas-sheet-title" tabindex="-1">Reading settings</h3></div>
    <div class="ex-dialog-body"><fieldset class="atlas-fieldset"><legend class="ex-label">Text size</legend><div class="atlas-radio-options"><label class="ex-selection" for="atlas-sheet-size-0"><input class="ex-radio" type="radio" id="atlas-sheet-size-0" name="atlas-sheet-size" value="Standard" checked> Standard</label><label class="ex-selection" for="atlas-sheet-size-1"><input class="ex-radio" type="radio" id="atlas-sheet-size-1" name="atlas-sheet-size" value="Large"> Large</label></div></fieldset></div>
    <div class="ex-dialog-actions"><button class="ex-button ex-button--secondary" type="button" data-sheet-close>Cancel</button>
      <button class="ex-button ex-button--primary" type="button" data-apply>Apply size</button></div>
  </dialog>
</div>
Use in a project
Usage and implementation

Full example

Open the full example

Use and alternatives

Choose ordinary navigation links for destinations, tabs for related panels, a modal sheet for a bounded interruption and nonmodal context help when the main page should remain usable. Use a tooltip only for supplementary short text; essential instructions must remain available without hover.

Anatomy

Name navigation landmarks and toolbars. Destinations expose aria-current; tabs connect their selected panel. A sheet has a visible title and close action. Context help has an identified trigger and panel, while a tooltip is descriptive text without interactive descendants.

States and recovery

Cover collapsed/expanded, opening/closed, selected destination, loading/failed/retryable tab content and removal of a selected tab. Abandoned loads cannot replace the active view. A layout breakpoint must not leave focus in a hidden navigation surface.

Semantics and focus

Links retain modified-click and browser-history behavior. enhanceToolbar supplies its documented keyboard model. Modal sheets use native dialog and core focus return; nonmodal help does not trap focus. Tooltip responds to focus and pointer, dismisses with Escape and is not the only path to information.

Responsive and preferences

Check bottom navigation and drawer layouts near the breakpoint, in short windows and with a software keyboard. Respect safe areas; preserve 16px modal outer clearance and readable action labels. Native flow and a compact disclosure are valid alternatives to fixed chrome.

API and ownership

Optional helpers are createContextHelp, enhanceToolbar, createSheet, createTooltip and createPanelLoader. removeTab updates the example tab model. The page supplies actual routes, history/title policy, permission checks and panel loading. Core enhanceTabs/enhanceNavigation return cleanup functions; createMenu/createDisclosure expose destroy(). Follow each optional helper’s own disposal contract.

Security and data

A hidden navigation item is not authorization. Validate direct routes and return URLs. Local example hashes represent fictional destinations and must not carry secrets. Rich help renders authored content, not arbitrary trusted HTML from a user.

Acceptance

Traverse Back/Forward and direct links, cross breakpoints with focus inside each surface, retry a panel failure, remove the selected tab and close every overlay by its supported methods. Verify touch help, keyboard tooltip dismissal and focus return with actual assistive technology.