WarUI

Selection State and Selection Announcements

GRID-A23-F10P0baselinePlanned

Row and cell selection is exposed via aria-selected and aria-multiselectable, with keyboard support for Space, Shift+Arrow and Ctrl+A. Selection changes produce concise announcements such as '3 rows selected'. This conveys selection without relying on colour.

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

Live example

A grid with multi-row selection and a checkbox column. An announcement log is visible.

Expected behavior

aria-selected reflects state on rows or cells. The select-all checkbox shows a mixed state. Announcements report the count.

Planned API surface

selectionModeselectedRowsselectionChangeselectAll()clearSelection()announceSelectionmessages.selection

Acceptance criteria

  • aria-multiselectable=true is set on the grid only when selectionMode allows multiple selection. (pending)
  • Selectable rows carry aria-selected=true|false, and non-selectable rows omit it. (pending)
  • Space toggles selection, and Shift+Arrow extends it. (pending)
  • The select-all checkbox exposes aria-checked=mixed for partial selection. (pending)
  • Selected styling stays distinguishable in forced-colors mode and does not depend on colour alone. (pending)