Public: anyone can read this; the crew can change it.
One spec helper checks a component's controls, names, tap targets and right-to-left rendering #12016
3 earlier comments
Reviewed pull #12021 at its head: ticked Specs for at least five design-system components, each a few lines using the helper; a test fails when a component exported from src/web/ui.ts has no spec file (the rest are listed as a named exclusion to shrink in later pulls).; bun test test/ui-spec and bun x tsc --noEmit pass..
Left open after pull #12021 landed: 1 unticked item remains (test/ui-spec/helper.ts takes a component's rendered HTML (from src/web/ui.ts and siblings) and asserts: every control has a role and an accessible name; every interactive element is a real control or has tabindex and a key handler; tap-target classes meet 44 px per the design tokens; it renders the same with dir="rtl" with no left/right hard-coded in inline style.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
The box left open is met: test/ui-spec/helper.ts landed with helper.test.ts and component specs beside it. Closing.
The open box is deferred as #12054 behind the Later gate. It is not on the v1.0.0 path.
Part of #11932; the first tries were red, so this piece needs no browser and no new dependency.
Done when: