Visible Focus Indicator and Focus Not Obscured
The focused cell shows a high-visibility focus ring with at least 3:1 contrast against adjacent colours. The grid scrolls so that pinned columns, sticky headers or overlays never fully hide the focused cell. This addresses WCAG 2.4.7 Focus Visible and 2.4.11 Focus Not Obscured (Minimum).
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 a sticky header, a pinned left column and a pinned footer row. The focus ring uses the default theme token.
Expected behavior
When navigating, the focused cell scrolls into view beneath the sticky regions. The contrast readout turns red when the chosen colour falls below 3:1.
Planned API surface
focusIndicatorfocusRingWidthfocusRingColorscrollPaddingForFocus--war-grid-focus-ring CSS variableAcceptance criteria
- The focus indicator appears only for keyboard focus (focus-visible) and for programmatic focus after keyboard interaction. (pending)
- The default focus ring achieves at least 3:1 contrast against both the cell background and the surrounding cells in all bundled themes. (pending)
- Pinned or sticky elements never fully cover the focused cell after a navigation key press. (pending)
- The focus ring stays visible in forced-colors mode. (pending)