WarUI

Accessible error indicators and messages

GRID-A15-F03P0baselinePlanned

Render invalid cells with a non-color-only indicator: a border, an icon and an optional corner marker. Show the message in an accessible popover on focus or hover. Indicators must meet WCAG contrast requirements and work in high-contrast mode.

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

Live example

Grid that already contains 3 invalid cells.

Expected behavior

Each style renders distinguishably without relying on color. Focusing a cell shows its popover, and the screen reader announces the message once. In forced-colors mode the system colors are used.

Planned API surface

validationIndicatorerrorTemplateshowErrorOncellClassRules.invalid--war-grid-invalid-color

Acceptance criteria

  • The indicator has a non-color cue such as an icon or a pattern. (pending)
  • Contrast is at least 3:1 for indicator graphics. (pending)
  • Pressing Esc dismisses the popover and focus stays on the cell. (pending)
  • The popover never obscures the focused cell. (pending)
  • aria-describedby is linked only while an error exists. (pending)