Skip to content

Pin the experiment's tab order and focus outlines - #41

Merged
mandiau-matthias merged 1 commit into
mainfrom
test/experiment-tab-order
Nov 16, 2026
Merged

mandiau-matthias merged 1 commit into
mainfrom
test/experiment-tab-order

Conversation

@mandiau-matthias

Copy link
Copy Markdown
Contributor

Follow-up to #37: the browser harness verified focus after actions but not the initial keyboard path or the visible focus indicator.

What changed

  • Walks ten Tab stops from the document and asserts the exact controls in order: header links, three scenario buttons, Run action, Try invalid input, Inputs & code, Reset experiment and GitHub.
  • Requires a computed solid 2px outline on every stop.
  • Adds a Shift+Tab assertion inside the inspector dialog, complementing the existing forward trap check.
  • Updates the harness descriptions in CONTRIBUTING.md and docs/EXPERIMENT.md.

Verification

  • npm run test:browser — exit 0 in Chrome 157; tab order and outlines pass
  • npm run check — exit 0, 145 unit tests, 5 integration tests, package and bundle checks

Boundary

This is a DOM regression check, not a screen-reader or manual visual review. Issue #16 remains open for a named screen reader and outside report.

The browser harness checked focus behavior after actions but not the initial keyboard path or the visible focus indicator. Walk ten Tab stops, assert the expected controls and require a solid 2px outline on each. Add a backward Tab assertion inside the inspector dialog.
@mandiau-matthias
mandiau-matthias merged commit c41a9e9 into main Nov 16, 2026
4 checks passed
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.

1 participant