Skip to content

GUI: form & control ARIA wiring #251

Closed

Description

@CameronBrooks11

Part of #246. ARIA wiring gaps — structure and focus are good, but several controls aren't programmatically described.

Findings (verified)

  • [MED] NumberField validation error not associated with the input. src/ui/NumberField.svelte:44 — error is visual-only (red border + sibling span). Add id="${id}-error" to the span, aria-invalid={!!error} and aria-describedby={error ? \${id}-error` : undefined}` on the input.
  • [MED] NumberField help reachable only via title. NumberField.svelte:40 — the focusable help button does nothing and content lives in title (not reliably announced). Expose via aria-describedby / accessible description.
  • [MED] Auto-scroll toggle lacks aria-pressed. components/machine/StreamLog.svelte:22 — add aria-pressed={m.autoScroll}.
  • [LOW] Clear-log icon button has no aria-label. StreamLog.svelte:29 — falls back to the 🗑 emoji; add aria-label="Clear log".
  • [LOW] Manual-control command input has no design-system focus ring. components/machine/ManualControlSection.svelte:62 — reuse param-form__input or add a matching :focus-visible rule.
  • [LOW / MED] Error toasts announce politely. shell/Toasts.svelte:16 — use role="alert" (assertive) for error/warning, role="status" otherwise; consider a persistent aria-live container.

Acceptance

  • NumberField: aria-invalid + aria-describedby for errors, and a real accessible description for help.
  • aria-pressed on auto-scroll, aria-label on clear-log, shared focus ring on the command input, assertive role for error/warning toasts.
  • Update the affected unit tests (label/role queries); full gate (check:svelte, lint, test).

Activity

  1. added
    enhancement
    gui
    on Jun 27, 2026
  2. added a commit that references this issue on Jun 27, 2026
    72e3b51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions