Repository navigation
feat(gui): phase 2b — dialog a11y, accessible help, shared empty-state, toast pause - #245
Merged
Merged
Conversation
…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
This was referenced Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #243. Final follow-up of the redesign epic #238 (the items deferred from Phase 2 #236).
Changes
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 viaaria-labelledby→ the visible<h2>(wasaria-label). About / Diagnostics / Backend-unavailable dialogs all inherit it.ui/NumberField.svelte): the ⓘ tooltip is now a focusable<button>with an accessible name (was atitle-only<span>, unreachable by keyboard / screen reader).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 bespokevp__empty-*/vp__state--error/log__emptystyles.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. (EditorgetByLabelTextqueries scoped to{ selector: "input" }since the new help button shares the field name in its accessible label.)Closes #243