Repository navigation
Description
Context
The design-kit rule (docs/decisions/design-kit/components-and-interactions.md:62-69): "a 44px target is not a 44px box — small visuals stay small and extend their target past the paint". Expansion per side must be at most half the distance to the nearest interactive neighbour, verified with elementFromPoint at each target's edges.
The kit follows the rule one component at a time. Several use their own transparent ::before: .bk-switch (Toggle.tsx:15), .bk-thumb (FeedbackRow.tsx:16), .bk-undo (InlineToast.tsx:23), .bk-tracker-pill (TrackerPillList.tsx:48). The tab bar uses the other sanctioned method: padding canceled by an equal negative margin (TabBar, packages/ui-kit/src/chrome/TabBar.tsx:13-27). There is no shared, reusable way to do it. App code in packages/ui-react therefore reaches 44px by inflating the visible box: about 62 min-h-11/h-11/min-h-[44px] uses across 33 files, concentrated in settings (storage-tab.tsx 8, module-settings-fields.tsx 6, storage/storage-guidance.tsx 5, modules-tab.tsx 3). The owner sees buttons and other tappable elements that are visibly too tall and break the kit's proportions, as in the Storage screen's full-height "Open" buttons on every row.
Scope
- Add one kit-level hit-area utility: a class or existing-primitive integration that extends the target past the paint, using one of the two existing sanctioned methods. A pseudo-element must account for border-box reach; padding/negative-margin expansion is also allowed by the later D27 record. It must respect the neighbour-gap rule, and it must apply under coarse pointers, or always where the design says so.
- Document the utility in the design-kit decision, next to the existing rule.
- Migrate the
ui-reactsites whose visible box was inflated only to meet 44px, so they render at their design size with an extended target. Sites where 44px is the intended visual size stay as they are; list them in the PR.
Out of scope
- Restyling or redesigning the screens. ui-react: redesign the Storage screen around is anything wrong, what uses the space, and what can I do #3250 covers Storage.
- Changing the 44px floor or the gap rule.
- Kit components that already extend correctly.
Acceptance criteria
- One documented utility exists, and the existing per-component
::beforeimplementations either use it or record why they differ. - Every migrated control renders at its design-kit visual size. An
elementFromPointcheck at all four edges of each migrated target, at 44px reach, returns the control itself, and the same check on each neighbour returns that neighbour. The probe is a browser test that fails on current main for at least one migrated control. - No migrated control falls below 44px reach under
any-pointer: coarse. - Visual baselines are updated for the changed controls.
Verification
Run the browser tests (bun run test in packages/ui-react with the real-browser lane) and compare Storybook or screenshots before and after, at 320px.
Contract impact
None.
Existing design constraints and classification
Read the later D27 correction in docs/decisions/design-kit/components-and-interactions.md (section “the negative-margin hit target is exact; the pseudo-element one is not”), not only its earlier 44px rule. TabBar deliberately keeps padding ungated because the badge shares its geometry; preserve that exception and existing correct components. This is implementation of an approved target rule, not authority to invent new visual sizes. Establish each migrated size from its existing kit primitive or approved screen design, list intended-44px visuals and other exceptions, and leave an unsupported redesign for its actual design owner. Decorative/disabled/handlerless elements must not gain an invisible active target. If existing neighbour spacing cannot fit 44px without overlap, adjust the permitted layout or record the site’s unresolved design rather than accepting click theft.
The initial scan matches current main: 63 matches on 62 lines across 33 files for min-h-11/h-11/min-h-[44px]; a match is a candidate, not evidence each site is wrong. Verification uses bun run test:browser / bun run test:layout with affected filters as appropriate plus kit stories/visual proof, preserving the pinned browser and offline guards. No browser measurement was performed in triage. Assess any actual newly exported prop/signature under the public API contract rather than assuming a CSS-only implementation changes one.
2026-11-02 triage at main a84d9bfbcb4e608b504aa0a9feb1144ad9a0b77e: Repaired the source claim that TabBar uses ::before and incorporated the already-recorded alternative geometry/border/gating rules. The complete implementation brief preserves current design sizes and requires real edge-hit proof, so no new UX ruling is a prerequisite. Preserve p2 and both owning areas.
Activity
schlessera commentedon Nov 2, 2026
Claiming this issue (claim token
claim-3252-107566). Intended branch:fix/3252-hit-area. It is a blocker of #3254.test(ui-kit): consumer parity stories accept a reaching control (#3252)
test(ui-react): sign-out dialog targets accept a reaching Button (#3252)
CONTRACT: feat(ui-kit): one hit-area utility; Settings and Storage re…
schlessera commentedon Nov 2, 2026
Reopened (2026-11-02). PR #3264 merged the first slice as
b4b9204, and GitHub then closed this issue by mistake. The PR body said the final slice "closes" this issue, and GitHub read that as a closing keyword. #3264 is aRefsslice. These acceptance criteria are not yet met.Delivered in #3264 (0.45.0):
.bk-hit, plus an additiveButtonProps.reach, recorded in the design-kit decision ("One hit-area utility reaches 44px past the paint (ui-react: controls inflate their visible box to 44px instead of extending the tap target past the paint #3252)") and inpackage-api.md.packages/ui-react/tests/browser/hit-reach.settings.pointer.tsxprobes edges in the fine, coarse and mixed pointer projects, and fails on main for every Settings and Storage scene.<summary>rows deferred to ui-react: collapsible sections look unstyled and need a pattern taxonomy, not one Disclosure for all #3253, and decorative skeletons.Remaining:
reachmigration, a coarse row gap where reaching Buttons wrap, and edge probes in a pointer-matrix test.hygiene-review,session-drafts,conversation-controls,discovery-expansion). Those must be regenerated inside the pinned container (node scripts/visual.mjs --update).schlessera commentedon Nov 3, 2026
Claiming the remaining slice (claim token
claim-3252-714675). Intended branch:fix/control-hit-target-visible-box. Path overlaps at claim time: #3404 (chat/turn-journal.tsx) and #3407 (activity/activity-page.tsx,chat/turn-journal.tsx), both draft epic PRs. The rest are closure-only. #3471 (ui-kitStatusIndicator) is left alone: this slice touches noui-kitsource.schlessera commentedon Nov 3, 2026
Final slice opened as a draft: #3533 (head
1740747f0, tested on base90aebd916, milestone 0.45.0).ui-reactsites across chat, voice, activity, files, graph, connectivity, the page-failure screen, the diagnostic review and search. Each now usesreach(or.bk-hitfor a raw control), plus a coarse row gap where a row of reaching Buttons wraps.hit-reach.app.pointer.tsxfails on main (12/12 coarse, 10/12 fine) and passes on the branch in all three pointer lanes. The PR has the mutation receipts and the visible-box vs hit-box measurements.needs: design).The PR is still a draft, and hosted proof is pending.
test(ui-kit): check reaching controls' targets in the consumer-parity…
test(ui-react): check Send as message reaches instead of measuring it…
test(ci): a drifted audited reader leaves its asset unknown instead o…
fix(ui-react): controls reach 44px past their paint instead of drawin…
schlessera commentedon Nov 4, 2026
Delivered by #3533, squash
54e47ae55on main, with candidate proof run 41765853642 green on headf2fc10f30. The PR also records the #2408 reader-drift ruling. The post-merge re-audit of the cold-capture reader is #3548.