Skip to content

Accessibility: 13 open bugs in keyboard, screen-reader, reflow, motion, and Canvas behavior #559

Closed

Description

@nickhamze

Accessibility: 13 open bugs in keyboard, screen-reader, reflow, motion, and Canvas behavior

I ran a focused accessibility pass across OpenStation’s window system, dialogs, dock, native apps, and Pixi surfaces. These are not speculative audit warnings: every item below was reproduced in the running product, and the higher-risk findings were replayed independently.

The most urgent bug is #1: pressing Enter while Cancel is focused can approve a destructive action. The rest mostly come from a handful of shared primitives, so fixing the dialog, window-chrome, and Canvas patterns should clear several items at once.

Screenshot evidence is attached in the first comment.

At a glance

  • 1 critical bug
  • 8 high-impact bugs
  • 4 medium-impact bugs
  • 13/13 reproduced

1. Pressing Enter on Cancel confirms a destructive dialog

Why this matters: A keyboard user can focus Cancel or Keep items, press Enter, and accidentally approve a deletion. Space works correctly; Enter does the opposite of what the focused button says.

To reproduce:

  1. Open any OpenStation confirmation dialog.
  2. Tab to Cancel or Keep items.
  3. Press Enter.
  4. The dialog resolves true and runs the confirmed action.

The dialog’s host-level key handler treats every bubbled Enter as confirmation, including Enter from the Cancel button.

Where to look: src/ui/components/wpd-confirm-dialog/wpd-confirm-dialog.ts, src/wpd-confirm.ts

2. Confirmation dialogs let focus escape and do not restore it

Why this matters: The dialog says it is modal, but keyboard focus can move into the page behind it. Once that happens, Escape may no longer close it. Closing the dialog also drops focus on the document body instead of returning the user to the control they started from.

To reproduce:

  1. Open a confirmation dialog from a keyboard-focusable control.
  2. Tab through both dialog buttons.
  3. Press Tab once more.
  4. Focus leaves the dialog and enters the background page.
  5. Dismiss the dialog and notice that focus is not returned to the opener.

Where to look: src/ui/components/wpd-confirm-dialog/wpd-confirm-dialog.ts, src/wpd-confirm.ts

3. Every window-control button is unnamed to screen readers

Why this matters: Window actions, Minimize, Maximize, Fullscreen, and Close are all announced as the same unnamed “button.” A blind user cannot tell which control they are about to activate.

To reproduce:

  1. Open any OpenStation window.
  2. Tab through its title-bar controls with a screen reader or inspect the accessibility tree.
  3. Each focusable Shadow DOM button has no accessible name.

The label is placed on the <wpd-window-button> host but is never forwarded to the actual focusable <button> inside it.

Where to look: src/ui/components/wpd-window-button/wpd-window-button.ts, src/window/dom.ts, src/window-chrome/controls/render.ts

4. Iframe windows have no accessible frame title

Why this matters: When several WordPress admin windows are open, screen-reader users cannot tell which frame is Posts, Pages, Settings, and so on.

To reproduce:

  1. Open any classic iframe-based OpenStation window.
  2. Inspect the iframe in the accessibility tree.
  3. It has a scripting name, but no title, aria-label, or aria-labelledby.

Where to look: src/window/dom.ts, src/window/tabs.ts

5. Windows without sub-pages expose an empty ARIA tablist

Why this matters: Screen readers encounter a malformed tab widget with no tabs in it. It adds noise and suggests navigation that does not exist.

To reproduce:

  1. Open OpenStation Preferences or another iframe window with no sub-pages.
  2. Inspect the title-bar navigation in the accessibility tree.
  3. It exposes a labelled role="tablist" with zero role="tab" children.

CSS hides the empty element visually, but its ARIA semantics remain exposed.

Where to look: src/window/dom.ts

6. Actionable toasts disappear while their button is focused

Why this matters: If a user tabs to Retry or Undo and needs more than a few seconds, the toast removes the focused button, loses the action, and dumps focus on the page body.

To reproduce:

  1. Show a toast with an action such as Retry.
  2. Focus the action with the keyboard.
  3. Wait for the toast timer to expire.
  4. The toast disappears, the action is not run, and focus falls to BODY.

The timer should pause while the toast or one of its controls is focused or hovered.

Where to look: src/toast.ts, src/ui/components/wpd-toast/wpd-toast.ts

7. First-run native-app dialogs leak and lose focus

Why this matters: A first-time keyboard user can tab out of the Posts introduction and into obscured WordPress controls behind it. Closing the dialog leaves them outside the app they were onboarding into.

To reproduce:

  1. Use an account that has not dismissed the native Posts introduction.
  2. Open Posts.
  3. Tab through Take me to settings and Got it.
  4. Tab again; focus moves behind the modal to the page body and WordPress skip link.
  5. Press Escape; focus is not restored to Posts or its launcher.

Pages, Users, and Comments use the same dialog pattern.

Where to look: src/posts-window/intro-dialog.ts and the matching Pages, Users, and Comments intro files

8. Failed HTTP requests are shown and announced as “Saved”

Why this matters: OpenStation can tell a user their change was saved when the server actually returned an error. The title bar paints a green check, and screen readers receive the same false success message.

To reproduce:

  1. Make a request through wp.desktop.fetch() to an endpoint that returns HTTP 500.
  2. Watch the window activity indicator.
  3. It moves from Saving to Saved, even though the response is ok: false.

fetch() resolves normally for HTTP errors, and the activity tracker treats every resolved promise as success.

Where to look: src/boot/tracked-fetch.ts, src/window/index.ts, src/ui/components/wpd-save-status/wpd-save-status.ts

9. The Unified dock loses navigation at 320px

Why this matters: At a narrow viewport or high magnification, most applications move completely offscreen. Keyboard focus can move to those hidden buttons without scrolling them into view.

To reproduce:

  1. Choose the Unified desktop layout with the default dock size.
  2. Resize the viewport to 320×800 at 100% zoom.
  3. Inspect or keyboard through the dock.
  4. In the tested full app set, 16 of 23 buttons were completely offscreen, with no horizontal scrolling or overflow menu.

Where to look: assets/css/dock.css

10. Visible window-loading state is hidden from assistive technology

Why this matters: Sighted users see a loading spinner, but screen-reader users get no busy state or loading announcement and may think the window is empty or broken.

To reproduce:

  1. Put an OpenStation window into its content-loading state.
  2. Confirm that the spinner is visible.
  3. Inspect the window in the accessibility tree.
  4. The window, body, and iframe have no aria-busy, and the labelled spinner sits inside an aria-hidden overlay.

Where to look: src/window/loading.ts, src/window/dom.ts

11. The Posts intro animation ignores reduced-motion preferences

Why this matters: People who ask the operating system to reduce motion still receive a large, continuously moving Pixi animation during onboarding.

To reproduce:

  1. Enable prefers-reduced-motion: reduce.
  2. Open the first-run native Posts introduction.
  3. Watch the visualization after it settles.
  4. Nodes continue floating and moving; two frames 450 ms apart differed by 6.014% of the canvas pixels.

The ticker starts unconditionally and has no reduced-motion branch.

Where to look: src/posts-window/intro-dialog.ts

12. The Categories graph is absent from the accessibility tree

Why this matters: The visible category names and hierarchy exist only in Pixi. Screen-reader, voice-control, switch, and keyboard users cannot discover or navigate them.

To reproduce:

  1. Open native Posts and switch to Categories.
  2. Inspect the graph with a screen reader or browser accessibility tree.
  3. The raw canvas has no role, name, or tab stop.
  4. None of the visible category nodes or parent/child relationships are exposed.

A synchronized semantic tree or list view should expose the same underlying model.

Where to look: src/posts-window/categories-mindmap.ts, assets/css/posts-window.css

13. Reparenting a category is drag-only

Why this matters: Anyone who cannot perform a precise drag cannot move an existing category under a different parent.

To reproduce:

  1. Open native Posts → Categories and select an existing category.
  2. Try to move it beneath another existing category without dragging.
  3. The sidebar offers Name, Slug, Description, Child, Save, and Delete, but no parent chooser or Move action.
  4. Reparenting to another category exists only in the pointer drag/drop path.

Where to look: src/posts-window/categories-mindmap.ts

Suggested order of attack

  1. Fix the shared confirmation-dialog behavior first (1 and 2).
  2. Fix the shared window semantics (3–5 and 10).
  3. Fix timed/focus behavior (6 and 7).
  4. Correct false save reporting (8).
  5. Add responsive dock overflow (9).
  6. Add reduced-motion and semantic/non-drag equivalents for Pixi surfaces (11–13).

I would add focused regression tests at the shared-component level wherever possible, then keep one end-to-end keyboard or accessibility-tree check for each full user flow.

Activity

  1. added
    bug
    on Aug 11, 2026
  2. nickhamze commented on Aug 11, 2026

    @nickhamze
    CollaboratorAuthor

    Screenshot evidence

    These are the fresh captures referenced by the consolidated report.

    Unnamed window controls

    Unnamed window controls

    Malformed empty Preferences tablist

    Malformed empty Preferences tablist

    Cancel focused immediately before Enter incorrectly confirms

    Cancel focused immediately before Enter incorrectly confirms

    Confirmation modal after keyboard focus escapes

    Confirmation modal after keyboard focus escapes

    Actionable toast with Retry focused

    Actionable toast with Retry focused

    Toast removed and focus lost after timeout

    Toast removed and focus lost after timeout

    First-run Posts modal after focus escapes

    First-run Posts modal after focus escapes

    HTTP 500 rendered and announced as Saved

    HTTP 500 rendered and announced as Saved

    Unified dock with 16 applications completely offscreen at 320px

    Unified dock with 16 applications completely offscreen at 320px

    Visible window loading state with no accessible status

    Visible window loading state with no accessible status

    Reduced-motion frame difference for Posts introduction

    Reduced-motion frame difference for Posts introduction

    Categories Pixi graph absent from the accessibility tree

    Categories Pixi graph absent from the accessibility tree

    Selected category sidebar has no non-drag parent chooser

    Selected category sidebar has no non-drag parent chooser

  3. changed the title [-]Accessibility audit: 13 confirmed defects across keyboard, screen readers, reflow, motion, and Canvas[/-] [+]Accessibility: 13 confirmed bugs in keyboard, screen-reader, reflow, motion, and Canvas behavior[/+] on Aug 11, 2026
  4. changed the title [-]Accessibility: 13 confirmed bugs in keyboard, screen-reader, reflow, motion, and Canvas behavior[/-] [+]Accessibility: 12 open bugs in keyboard, screen-reader, motion, and Canvas behavior[/+] on Aug 11, 2026
  5. changed the title [-]Accessibility: 12 open bugs in keyboard, screen-reader, motion, and Canvas behavior[/-] [+]Accessibility: 13 open bugs in keyboard, screen-reader, reflow, motion, and Canvas behavior[/+] on Aug 11, 2026
  6. nickhamze commented on Aug 11, 2026

    @nickhamze
    CollaboratorAuthor

    Current-trunk follow-up for #9

    I replayed the 320px dock case after updating to origin/trunk (c670170). The new scroll wrapper helps the ordinary app section, but it does not solve the extension-heavy pinned cluster.

    In this capture, the scrollable section is only 8px wide while the non-scrollable pinned section is 454px wide and extends from x=-60 to x=394 in a 320px viewport. Launchers are still clipped on both sides with no way to reach them.

    Unified dock still clipped at 320px on current trunk

    So I am leaving finding #9 open.

  7. AllTerrainDeveloper commented on Aug 12, 2026

    @AllTerrainDeveloper
    Collaborator

    Fix the shared confirmation-dialog behavior first (1 and 2). ✅
    Fix the shared window semantics (3–5 and 10). ✅
    Fix timed/focus behavior (6 and 7). ✅
    Correct false save reporting (8). ⌛
    Add responsive dock overflow (9). ⏳
    Add reduced-motion and semantic/non-drag equivalents for Pixi surfaces (11–13). ⏳

  8. AllTerrainDeveloper commented on Aug 13, 2026

    @AllTerrainDeveloper
    Collaborator

    @nickhamze MOST OF IT is addressed. I dropped 11 because we dropped entirely the intro dialogs

    9 is a task that should be isolated (I mean, we are iterating on it and it's a huge change to be addressed without further discussion)
    13 is a feature that can wait (people always have the regular categories editor), as it's not trivial fix that would require a bit of planning/testing/discussion.

    So, Having said so, I'll close this issue and create an internal linera issue for 9

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions