WarUI

Roving focus model with single tab stop

GRID-A11-F09P0baselinePlanned

The grid takes up one tab stop. Inside the grid, exactly one cell is focusable (tabindex=0) and the rest have tabindex=-1. The focused cell moves with the keyboard and mouse. This follows the ARIA grid pattern and keeps page tab order predictable.

Planned. This page shows the specification from issue #189. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A 20x8 grid placed between two text inputs. The focus outline is visible, and a debug overlay shows the focused coordinates.

Expected behavior

Tab from the first input lands on one grid cell. Tab again leaves for the second input. Shift+Tab re-enters the grid at the last focused cell. Clicking a cell moves the focus there.

Planned API surface

focusModel: 'roving-tabindex' | 'active-descendant'focusedCellonFocusedCellChangegridApi.focusCell(rowKey, colId)gridApi.getFocusedCell()

Acceptance criteria

  • Exactly one element in the grid has tabindex=0 at any time (roving mode). (pending)
  • In active-descendant mode, the grid container holds focus and aria-activedescendant points to the focused cell id. (pending)
  • Re-entering the grid restores the last focused cell. (pending)
  • Clicking a cell sets the focused cell and fires onFocusedCellChange. (pending)
  • The focus outline meets the WCAG 2.2 focus-appearance contrast requirement. (pending)