Skip to content

feat(gui): phase 2b — dialog a11y, accessible help, shared empty-state, toast pause - #245

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/gui-phase2b-a11y
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/gui-phase2b-a11y

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #243. Final follow-up of the redesign epic #238 (the items deferred from Phase 2 #236).

Changes

  • Dialog focus management (ui/Dialog.svelte): trap Tab within the modal (cycle first↔last), move focus inside on open, restore focus to the trigger on close, and label via aria-labelledby → the visible <h2> (was aria-label). About / Diagnostics / Backend-unavailable dialogs all inherit it.
  • Accessible help (ui/NumberField.svelte): the ⓘ tooltip is now a focusable <button> with an accessible name (was a title-only <span>, unreachable by keyboard / screen reader).
  • Shared empty-state (ui/EmptyState.svelte, new): one centered pattern (title + optional hint + optional action, with an error tone). The viewport's no-layers / no-preview / error states and the Output Log empty state now route through it; removes the bespoke vp__empty-* / vp__state--error / log__empty styles.
  • Toast pause-on-hover (state/notifications.svelte.ts, shell/Toasts.svelte): the auto-dismiss timer pauses on hover/focus and resumes on leave, tracking remaining time per toast.

Verification

  • tsc, check:svelte (0 errors, 369 files), lint:css, lint:css:vars, 316/316 vitest green. (Editor getByLabelText queries scoped to { selector: "input" } since the new help button shares the field name in its accessible label.)
  • QA'd live: About dialog opens (labelled) and closes on Escape; viewport + log empty states render via the shared centered pattern.

Closes #243

…e, toast pause

Finish the deferred Phase 2 a11y/refactor items:

- Dialog: trap Tab within the modal (cycle first<->last), move focus inside on
  open and restore it to the trigger on close, and label via aria-labelledby ->
  the visible <h2> (was aria-label). All three dialogs inherit this.
- NumberField help: the ⓘ tooltip is now a focusable <button> with an accessible
  name (was a title-only span, unreachable by keyboard/SR).
- Add a shared EmptyState primitive (title + optional hint + optional action,
  with an error tone) and route the viewport's no-layers / no-preview / error
  states and the Output Log empty state through it — one consistent, centered
  pattern; removes the bespoke vp__empty-*/vp__state--error/log__empty styles.
- Toasts pause their auto-dismiss timer on hover/focus and resume on leave
  (notifications tracks remaining time per toast).

Tests: editor getByLabelText queries now scope to { selector: "input" } since the
new help button shares the field name in its accessible label.

Closes #243
@CameronBrooks11
CameronBrooks11 merged commit f4409b4 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/gui-phase2b-a11y branch June 27, 2026 13:54
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.

UI redesign Phase 2b — dialog a11y, help affordance, shared empty-state, toast pause

1 participant