Skip to content

feat(gui): wire form & control ARIA associations - #257

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/251-aria-wiring
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/251-aria-wiring

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #251. Part of epic #246 (post-redesign audit follow-ups).

Problem

Focus/keyboard were good, but several controls weren't programmatically described:

  • NumberField errors were visual-only (no aria-invalid/aria-describedby); help text lived only in title (not reliably announced).
  • Auto-scroll toggle lacked aria-pressed; clear-log fell back to the 🗑 emoji as its name.
  • Command input had no design-system focus ring.
  • Error toasts announced politely (role=status) rather than assertively.

Fix

  • NumberField: aria-invalid when in error; aria-describedby links the input to its error message (${id}-error) and to its help text, now in a visually-hidden span (${id}-help) so SRs announce it. The ⓘ keeps its hover title. (Verified the editors pass tooltip=/error=, so this engages at runtime.)
  • StreamLog: aria-pressed on the auto-scroll toggle; aria-label="Clear log".
  • ManualControlSection: command input gains the shared focus ring + --color-border-control.
  • Toasts: role="alert" for error/warning, role="status" otherwise.

Verification

  • lint:css, lint:css:vars, check:svelte (0 errors), tsc, 316/316 tests ✓
  • Confirmed via DOM/code that tooltip/error fields wire aria-describedby/aria-invalid.

Structure and focus were already good; several controls weren't
programmatically described.

- NumberField: add aria-invalid when in error, and aria-describedby linking the
  input to its error message (id ${id}-error) and to its help text, which is now
  rendered in a visually-hidden span (id ${id}-help) so screen readers announce
  it — title alone is not reliably exposed. The ⓘ button keeps its hover title.
- StreamLog: aria-pressed on the auto-scroll toggle (it is a toggle), and an
  aria-label on the clear-log button (was falling back to the 🗑 emoji).
- ManualControlSection: the command input gains the shared design-system focus
  ring and uses --color-border-control, matching param-form inputs.
- Toasts: error/warning toasts announce assertively (role="alert"); other types
  stay role="status" (polite).

Part of #246. Closes #251.
@CameronBrooks11
CameronBrooks11 merged commit 72e3b51 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/251-aria-wiring branch June 27, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GUI: form & control ARIA wiring

1 participant