Skip to content

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

Closed

Description

@CameronBrooks11

What

Follow-up items split out of Phase 2 (#236) to keep that PR reviewable. The more involved a11y/refactor pieces from the audit:

  • Dialog focus management (src/ui/Dialog.svelte): move focus into the dialog on open, trap Tab (cycle first↔last), restore focus to the trigger on close, add aria-labelledby → the visible <h2> id.
  • Help affordance: convert the ⓘ title-only help glyph in NumberField to a focusable <button> with an accessible popover (keyboard-reachable), or render help inline.
  • Shared empty-state component: one pattern (title + optional hint + optional action) used by the viewport (no-layers / no-preview / error) and the Output Log empty state; Output Log copy centered, sans, --font-size-sm.
  • Toast pause-on-hover: pause the dismiss timer on hover/focus and resume on leave.

Where

src/ui/Dialog.svelte, src/ui/NumberField.svelte, src/components/canvas/Viewport.svelte, src/components/machine/StreamLog.svelte, src/shell/Toasts.svelte, src/state/notifications.svelte.ts.

Acceptance criteria

  • Dialogs trap + restore focus and are labelled; help is keyboard-accessible.
  • Viewport + log share one empty-state pattern.
  • Error toasts pause on hover.
  • npm test + lints green.

Activity

  1. added
    enhancement
    gui
    on Jun 27, 2026
  2. added a commit that references this issue on Jun 27, 2026
    f4409b4
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