Birch UI v0.1
Pricing

Keyboard and accessibilityGantt

The keyboard map of the task grid and the timeline, linking tasks from the keyboard, what screen readers announce, and how the splitter, themes and reduced motion are handled.

Open .md

Everything in the Gantt works from the keyboard: navigating, editing cells, outlining, moving and resizing bars, and drawing links. Screen readers hear tasks with their dates, progress and status, and every change is announced.

Structure#

Part Semantics
Root A role="group" labelled by ariaLabel (default "Project schedule"). Give each Gantt a specific name, such as "Distribution centre fit-out".
Task list A WAI-ARIA treegrid labelled "Tasks", with expandable summary rows, levels and a roving focus, provided by the Birch UI Grid core.
Splitter A focusable role="separator" labelled "Resize task list", with its width in aria-valuenow.
Timeline A focusable region labelled "Timeline", with the visible range described on its header.
Task bars A group labelled "Task bars". Each bar is a role="button" with an accessible name such as "Install pallet racking, 18 Jan to 29 Jan, 20% complete, critical" or "Handover to operations, milestone, 5 Feb", and a short description of the keyboard commands.
Links, grid lines, today line, baselines Hidden from assistive technology; links are available as text in the predecessors column.
Live region A polite status region that announces changes.

Accessible names include "summary" for summary tasks, "critical" for critical tasks and "constraint conflict" when a constraint overrides a link.

Keyboard in the task list#

Keys Action
Arrow keys, Home, End, PageUp, PageDown Move between cells.
Enter, F2 or typing Edit the cell. Enter commits, Escape cancels.
ArrowRight / ArrowLeft on a summary's name Expand or collapse it.
Tab / Shift+Tab Indent or outdent the task. When that is not possible, focus moves on as usual.
Alt+Shift+ArrowRight / ArrowLeft Indent or outdent, also with tabToIndent: false.
Insert / Ctrl+Enter Add a task above or below and edit its name.
Ctrl+Delete Delete the task and its subtasks.

Because Tab falls back to moving focus whenever it cannot outline a row, keyboard users can always leave the task list. With tabToIndent: false, Tab only moves focus.

Keyboard on the timeline#

Keys Action
ArrowDown on the timeline Focus the first bar (or the last focused one).
ArrowUp / ArrowDown Previous or next bar.
Home / End First or last bar.
Enter Select the task and emit taskClick.
Space Select the task.
Escape Clear the selected link, or the selected task.
Alt+ArrowLeft / ArrowRight Move the task by one working day, or one snap step in hour-based presets.
Alt+Shift+ArrowLeft / ArrowRight Shorten or extend the task by the same step.
D Start linking from the task (see below).
Delete or Backspace Remove the selected link.
Ctrl+Delete Delete the task.

Anywhere#

Keys Action
Ctrl/Cmd+Z Undo.
Ctrl/Cmd+Y or Ctrl/Cmd+Shift+Z Redo.

On macOS, Alt is the Option key. Shortcuts are ignored while typing in an editor. In readOnly mode, navigation and selection work and editing keys do nothing.

Keyboard moves go through the same rules as drags: they are snapped to working time, checked by validateTaskChange, set a start-no-earlier-than constraint, and emit taskChange with source: 'keyboard'.

Linking from the keyboard#

  1. Focus a bar and press D. The live region announces "Linking from Floor repairs and sealing, finish-to-start".
  2. Press ArrowUp or ArrowDown to choose the task to link to. Each target is announced, with a note when the link is not allowed.
  3. Press ArrowLeft or ArrowRight to attach to the target's start or finish, or T to cycle through FS, SS, FF and SF.
  4. Press Enter to create the link, or Escape to cancel. Tab also cancels and moves focus on.

Keyboard links follow the dependency rules and validateDependency, and emit dependencyCreate with source: 'keyboard'.

Announcements#

The live region reports every change in plain language, for example:

  • "Install pallet racking starts 18 Jan 2027"
  • "LED high-bay lighting now lasts 7 days"
  • "Install pallet racking is 40% complete"
  • "Linked Floor repairs and sealing to Install pallet racking, FS"
  • "Selected the FS link from Survey to Permit. Press Delete to remove it."
  • "WMS configuration is now at level 2"
  • "The change to Handover was not allowed"
  • "Predecessors not changed: this link would create a dependency loop"
  • "Undone", "Redone", "Added New task", "Deleted Floor repairs and sealing"

Invalid grid input is reported the same way, so users hear why an edit did not apply.

Splitter#

Focus the splitter between grid and timeline and use ArrowLeft / ArrowRight (16 pixels, 64 with Shift), Home (narrowest) and End (widest). Its value is exposed through aria-valuenow, aria-valuemin and aria-valuemax.

Themes, contrast and motion#

  • theme is 'light' (default), 'dark' or 'auto', which follows prefers-color-scheme.
  • In Windows high-contrast mode (forced-colors), bars and links use system colors.
  • Animations and transitions are turned off when the user prefers reduced motion.
  • Critical tasks, conflicts and progress are part of each bar's accessible name and visible in the grid, so they do not depend on color alone.

Checklist for your project#

  • Give every task a meaningful name; it is the bar's accessible name.
  • Name the Gantt with ariaLabel.
  • If you color bars by status with color, also show the status in a custom column.
  • Keep tabToIndent on unless your users expect Tab only to move focus; leaving the grid always works either way.

Next steps#

↑ ↓ to move, Enter to open, Esc to close