Later: The open box from #12016: design checks do not stand between a stranger and a forge, so it waits behind v1.0.0.
From #12016's open box. test/ui-spec/helper.ts takes a component's rendered HTML (from src/web/ui.ts and siblings). It asserts that every control has a role and an accessible name, and that every interactive element is a real control or has tabindex and a key handler. It also checks that tap-target classes meet 44 px per the design tokens and that the HTML renders the same with dir="rtl", with no left/right hard-coded in inline style. Done: the helper passes on src/web/ui.ts's components, and a test with a nameless button fails.
Later: The open box from #12016: design checks do not stand between a stranger and a forge, so it waits behind v1.0.0.
From #12016's open box.
test/ui-spec/helper.tstakes a component's rendered HTML (fromsrc/web/ui.tsand siblings). It asserts that every control has a role and an accessible name, and that every interactive element is a real control or has tabindex and a key handler. It also checks that tap-target classes meet 44 px per the design tokens and that the HTML renders the same withdir="rtl", with no left/right hard-coded in inline style. Done: the helper passes onsrc/web/ui.ts's components, and a test with a nameless button fails.