WarUI

Forced-Colors (Windows High Contrast) Support

GRID-A23-F17P1baselinePlanned

Under forced-colors: active, the grid uses system colour keywords so that borders, focus, selection, sort icons and checkboxes remain visible. Icons use currentColor or have text fallbacks. The grid does not opt out of forced colours.

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 sorting, selection, focus, an error cell and a disabled row. A toggle emulates forced colours.

Expected behavior

All states stay distinguishable. Selection uses Highlight/HighlightText, and focus uses an outline that is not removed by forced colours.

Planned API surface

forcedColorsStyles--war-grid-* system color tokensiconSet

Acceptance criteria

  • No state is conveyed only via background-color or box-shadow in forced-colors mode. (pending)
  • SVG icons use currentColor and remain visible. (pending)
  • The focus outline is visible in both light and dark forced schemes. (pending)
  • Forced-color-adjust: none is used only where a documented reason exists. (pending)