Accessibility

How keyboard, focus, color, motion, state, and media remain operable on every Mpalo surface.

Keyboard

Scope: every Mpalo surface. Every task that a pointer can complete has a keyboard path.

The page starts with a skip link to #main-content. Tab order follows the reading order. A control that opens a menu, dialog, or expansion keeps focus on the control until the new surface receives it. Escape closes the topmost overlay. Focus never moves to a hidden element.

The media player is a focusable group. Space or K plays and pauses, Left and Right seek, M toggles mute, F expands, and Escape closes the expansion. The controls remain separate tab stops. The full keyboard model is in Media.

Review: tab through the page without a pointer. Every focus stop is visible, in reading order, and reachable again by Shift+Tab.

Focus

Focus is a visible state, not a browser default to remove.

Keyboard focus is a 2px outline in --focus with a 2px offset. Fields use a 0 offset. Focus is never removed to make a surface look quieter. The outline sits outside the component and does not change its layout.

A focused control keeps its surface and adds the focus ring

Review: focus every interactive element and confirm the outline is visible against its surface. Check fields, icon buttons, menu items, dialog actions, and range inputs.

Names and state

An icon-only control carries its name. A state change is exposed in text or ARIA, not only in color.

Decorative icons are aria-hidden="true". An icon-only button or link has an accessible name on the control. The visible label and the accessible name describe the same action. A stateful control updates its label or its ARIA state when it changes. The play button becomes Pause. The mute button becomes Unmute. The transcript button keeps aria-expanded in sync.

Status is never color alone. Pair every state with a word. An error says what was observed, what it means, and what to do next. Do not blame the person or use a generic failure phrase.

Review: inspect the accessibility name of every icon-only control. Toggle each stateful control and confirm the name or ARIA state changes with it.

Color and contrast

Color supports hierarchy. It does not carry the only copy of a state.

Body text uses --text-1 on its surface. Secondary text uses --text-2 or --text-muted, never a lower opacity. Status colors use their solid fill and on-color pair. Badges pair the tone with a word. Links use the accent text token and an underline on hover or focus.

Contrast is checked manually against the rendered surface and theme. A token that passes on one surface does not automatically pass on another ramp. Pair the check with the rendered page, not with the token values in isolation.

Review: check text, icons, focus rings, error states, and status badges on every surface and both modes. Zoom the page to 200% and confirm nothing is clipped.

Motion

Motion shows state. It does not perform personality.

Transitions are linear and short: 0.15s for hover, 0.2s for toggles, menus, and tabs, and 0.3s for a modal or a sidebar change. Animate color, outline, transform, and opacity. Do not use easing curves, springs, bounce, pulse, breathing, parallax, or hover scale. Scribbles draw once, left to right, over 5s. Loading uses the shimmer.

Under prefers-reduced-motion: reduce, transitions stop but the state signal remains. The media player keeps its state changes and stops the live ambient sampling.

Review: turn on Reduce Motion at the operating system level. Confirm no transition, draw, shimmer, or ambient sampling runs, and that every state is still legible.

Media

The player is operable without a pointer, and its state is exposed.

The player has a visible focus ring, a keyboard model, labelled controls, and a transcript state. The caption can be turned off. The transcript line is an aria-live region so a cue change is announced once. With no cues, the caption states that no transcript is available, and the sync control stays hidden.

Picture in picture is hidden when the browser cannot support it. A failed play or load reports what happened and what to try next. The ambient edge is decorative and stops sampling under reduced motion.

The component contract and keyboard map are in Media.

Forms and tables

A field has a label. A table has a caption and headers. A chart has a text alternative or a data table.

Every field has a visible label or an accessible name that matches the visible label. Required and error states are stated in text. An error sits next to the field it belongs to and says how to correct it. A disabled control is not the only way to explain why an action is unavailable.

A table uses a caption and column headers. A sortable header is a button and exposes its sort state. A chart needs a title, a source, and a data table or a written summary. Data covers the three accepted text forms and a worked data table.

Review: submit each form with a keyboard only, including a failure. Read each table header and sort control aloud. Confirm every chart has a text alternative.

Review

Accessibility is a release condition, not a final polish pass.

  1. Tab through the page. Confirm skip link, order, visible focus, and no traps.
  2. Use the page with a screen reader. Confirm names, headings, landmarks, table headers, and state changes.
  3. Zoom to 200% and reflow to 320px. Confirm no horizontal scrolling for content.
  4. Check text, icons, focus rings, and status colors on every surface and mode.
  5. Turn on Reduce Motion. Confirm transitions and ambient sampling stop and states remain.
  6. Submit every form with errors, disabled states, and required fields using the keyboard.
  7. Run Lighthouse and an axe scan as a first pass. They do not replace the manual checks above.

Enforcement. This checklist is the release review. Run it on every surface and every mode. Lighthouse and an axe scan are a first pass; they do not replace the manual checks above. A chart alternative is required, and the three accepted forms are on Data.