Repository navigation
Description
Context
#3252 established compact control paint with 44px effective touch targets through .bk-hit. The file viewer's Preview/Raw pills and the Actions dismissal-reason pills still draw visibly enlarged controls.
Verified at main 1619741f291f525d17cde4970a5ada40644117c1:
- (
FilterRowProps,packages/ui-kit/src/rows/FilterRow.tsx:45-51) has no reach policy; (const row,packages/ui-kit/src/rows/FilterRow.tsx:68-74) clips withoverflow: hidden. - (
<div className=,packages/ui-react/src/components/files/file-viewer-frame.tsx:76-76) forces Preview/Raw tabs to 44px boxes. - (
function DismissConfirm,packages/ui-react/src/components/activity/durable-actions.tsx:453-485) renders raw pressed chips withmin-h-11; kitChipremains non-interactive. - The binding reach and neighbour-gap rules are in
docs/decisions/design-kit/components-and-interactions.md, “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 its follow-on.
The existing design brief supplies 320px/1280px mocks, spacing, edge probes and alternatives. Its opt-in recommendation is superseded by the ruling below.
Maintainer decision — 2026-11-08
Approve the compact-paint design with reach enabled by default for every interactive FilterRow pill. No caller opt-in is required. This provides broader touch coverage and makes a complete caller audit part of the implementation, rather than a later follow-up. Decorative pills remain non-interactive.
- Preview/Raw uses existing FilterRow paint (about 20.5px tall) and effective 44px targets under
any-pointer: coarse; fine-pointer paint remains compact. - Every interactive FilterRow caller must be checked for clipping, narrow labels, wrapping, focus and neighbour overlap before the default ships. With the brief's 6px horizontal gap, each pill needs at least 38px paint width or adjusted spacing/width that meets the same non-overlap rule. Do not assume every caller already satisfies this.
- The viewer follows the proposed non-clipping vertical reach and 20px coarse-pointer wrapped-row gap, removing its 44px tab-box overrides. Horizontal clipping and inset focus must still be verified.
- Dismissal reasons use the existing kit pill geometry (about 29.5px tall) on raw
aria-pressedbuttons with.bk-control.bk-hit; kitChipstays non-interactive. Wrapped rows use 16px coarse-pointer gaps. Accessible names, pressed state and independent actions remain intact. - The 44px floor, coarse-pointer condition and neighbour-gap rule remain binding. A caller must be corrected to meet them; default reach is not permission to overlap another target.
Scope
Finish this design-record task: append the approved ruling to docs/decisions/design-kit/components-and-interactions.md, identify the older opt-in proposal as superseded for FilterRow, and scope a separate implementation issue covering the default behavior, all interactive FilterRow callers, viewer toolbar and dismissal chips.
Out of scope
- Runtime implementation in this design-record task; it follows in the separate scoped task.
- Changing Button's opt-in reach policy, the 44px floor, the neighbour-gap rule or fine-pointer visual sizes.
- Unrelated ui-react: controls inflate their visible box to 44px instead of extending the tap target past the paint #3252 sites or adding an interactive Chip component.
Acceptance criteria
- The design-kit record contains the dated maintainer ruling, chosen paint sizes, default interactive FilterRow reach, spacing/clipping/focus requirements and rationale for rejecting the opt-in branch.
- Preserve/link the 320px and desktop mocks in the existing brief, explicitly applying its geometry to the default-reach branch.
- Create a separate implementation task with a complete inventory/audit requirement for all interactive FilterRow callers, including library stories and application consumers, plus the viewer and dismissal-chip changes.
- That task requires actual browser proof at 320px/1280px with coarse and fine pointers: each 44px target reaches all four edges, adjacent/stacked targets do not steal clicks, keyboard/focus/pressed behavior remains correct, and late/wrapped layouts are covered. Include a deliberate reach/spacing mutation that fails the intended assertion, then passes after restoration.
- The implementation task assesses the selected public component behavior against
docs/integration-contract/package-api.md, requires relevant contract/schema/API-report updates if applicable, and requires a published-behavior changeset.
Verification
For this task, review the durable record against this ruling and the linked brief; verify the separate implementation issue has checkable scope, exclusions, acceptance criteria and browser/mutation proof requirements. Run the documentation/citation checks and lint appropriate to the record change. Runtime/browser results belong to the implementation task and are not claimed by this decision.
Contract impact
This task records the design and scopes implementation. No opt-in reach prop is required by the chosen branch. The implementation must assess the default public component behavior under the package-API contract and apply CONTRACT:/documentation/versioning rules where required.
Refs #3252
2026-11-08 decision reconciliation: the maintainer selected default reach rather than the brief's opt-in recommendation. The body now makes the complete caller audit mandatory, preserves the separate implementation-task boundary, and is ready for the remaining record/scoping work. No runtime change or browser qualification is claimed.
Activity
schlessera commentedon Nov 3, 2026
Design needed. The hit-target rule is settled: paint stays small and the target reaches 44px. What isn't settled is the visual size of two pills that have no kit primitive. One sits in a clipping strip, so it cannot reach without a layout or kit change. The code can't choose between growing the strip, adding an interactive chip size, or keeping 44px as the design.
uploads-sh commentedon Nov 3, 2026
Preview/Raw pills and dismissal-reason chips: kit paint with 44px reach at 320 and 1280 ·
afteruploads put <file> --issue 3531· docsschlessera commentedon Nov 3, 2026
Design brief: Preview/Raw pills and dismissal-reason chips
Ruling in one line: neither site keeps a 44px paint. Both paint at an existing kit size and reach 44px under
any-pointer: coarse. The viewer needs one additiveFilterRowprop. The Actions chips need no kit change.Dashed boxes are the 44px targets under a coarse pointer. Under a fine pointer the target is the paint, as #3252 already rules.
1 · Viewer Preview/Raw →
FilterRowpills reachVisual size: the kit
FilterRowpill, unchanged:4px 10pxpadding, 10.5px/1 type, 1px border, 20.5px tall. Preview is about 67px wide and Raw about 43px.How it meets 44px:
FilterRowgains an optionalreach?: boolean, mirroringButton.reach(additive,CONTRACT:).reach, the strip goes fromoverflow: hiddentooverflow-x: clip; overflow-y: visible. Withclip, the other axis staysvisibleand does not compute toauto. The strip still clips horizontally, so nothing about horizontal overflow changes. Paint is identical, because pills never overflow vertically.reach, each interactive pill adds.bk-hit. Vertical reach is (44 − 20.5) / 2 = 11.75px per side. Horizontal reach is 0 for pills 44px or wider, and 0.5px for Raw.bk-control-inset, because the strip still clips at its left and right ends (ui-kit: fix focus frames clipped by rounded containers across the UI #1775).[&_[role=tab]]:min-h-[44px] min-w-[44px]wrapper overrides and passesreach.Neighbour gaps (coarse):
gap-x-4)py-3)gap-y-3)smcontrol, e.g. an untrusted-mark Button)So the toolbar adds
any-pointer-coarse:gap-y-5. The fine-pointer layout does not change.Caller rule (goes in the
reachdoc): with the 6px strip gap, the horizontal reach on each side must be ≤ 3px, so every interactive pill in a reaching row must be at least 38px wide. Preview and Raw pass. The kit story asserts the theft at a 36px pill, asNarrowGapStealsTheClickdoes.Rejected:
FilterRowand grows the toolbar line by 23px under fine pointers too.2 · Dismissal-reason chips → kit
pillgeometry plus.bk-hitVisual size: the kit
Chip variant="pill"geometry:6px 12pxpadding, 11.5px/1.35 type, radius 999, 29.5px tall. The current 12pxtext-xssteps down 0.5px to the kit size. Colour, pressed state (aria-pressed) and accessible names (label plusaria-description) stay as they are.How it meets 44px: keep the documented
raw-button: selectelement. KitChipstays non-interactive. Change the class frombk-rowtobk-control bk-hit:bk-control, because a pill is control-shaped, asFilterRowandSuggestionChipsalready rule. The focus ring is outside at +2. The group has no clipping, so nothing cuts the ring.bk-hitreaches (44 − 29.5) / 2 = 7.25px per side vertically. Every chip is wider than 44px, so there is no side reach.min-h-11.Neighbour gaps (coarse):
DispositionBar(via the hint line)So the group adds
any-pointer-coarse:gap-y-4, the row gap #3533 already uses.Rejected:
Chip. That would be the only pressable chip, so it fails the no-new-seam rule. If a second pressed chip appears, promote this one then.ChoiceOptionrows. They read as a required, effectful choice. That would stack four full-width rows in a confirmation whose copy says the reason "never grants or stops anything".Buttonhas no pressed state.For the implementation task (
agent-ready)FilterRow.reach, x-clip/y-visible when set,.bk-hiton interactive pills, the doc rule (pills ≥ 38px wide), a story plus anelementFromPointedge probe. Changeset and apackage-api.mdentry.file-viewer-frame.tsx(drop overrides, addreachandany-pointer-coarse:gap-y-5).durable-actions.tsxDismissConfirm(pill geometry,bk-control bk-hit,any-pointer-coarse:gap-y-4).hit-reach.app.pointer.tsxwith the viewer toolbar (markdown file, with and without Share) and the dismiss confirm, at 320 and 1280.Open decision
FilterRowreach by default? This brief makesreachopt-in, asButton.reachis, so no otherFilterRowrow changes without being checked. The other choice is to turn it on for every interactive pill. That also brings the other interactiveFilterRowcallers up to the touch floor (they haven't been audited here), but it needs every row to meet the 38px-wide rule first. Recommendation: opt-in now, and audit the other callers in a follow-up.schlessera commentedon Nov 8, 2026
Decision (maintainer, 2026-11-08): Approve the compact-paint design with reach enabled by default for every interactive FilterRow pill, rather than opt-in.
Audit every interactive caller before shipping, correcting narrow pills, clipping and neighbour/wrapped-row gaps so each coarse-pointer target reaches 44px without overlap. The viewer uses the brief's compact FilterRow paint; dismissal reasons use kit pill geometry plus
.bk-control.bk-hiton their existing raw pressed buttons. Fine-pointer visuals and Button's opt-in policy remain as ruled.This supersedes P1's opt-in recommendation in the design brief. The body now selects default reach and gives the remaining design-record/scoping task complete acceptance criteria, including a separate implementation issue with all-caller browser/mutation proof. No other
needs:label remains, so this issue isagent-readyfor that record/scoping work; runtime implementation is not claimed.schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: raised frompriority: p2topriority: p1. Following the maintainer's 2026-11-10 approval of the GitHub component design, #3800 (p1) is nowBlocked by #3531: its PR tabs keep FilterRow, and the 44px touch-target criterion depends on this fix. The repository rule says a blocker carries at least the priority of every issue it blocks, so this issue rises to match. The scope and acceptance criteria are unchanged.schlessera commentedon Nov 16, 2026
Milestoned 0.45.0 (maintainer, 2026-11-16): this blocks #3800, which blocks #3795, both part of the GitHub support shipping in 0.45.0 (epic #3791).
schlessera commentedon Nov 16, 2026
Claimed for implementation. Claim token:
claim-3a374c49. Branch:docs/3531-filterrow-default-reach-record.collisions: see report at claim time; doc-only record change
docs(design-kit): record default FilterRow reach and the dismissal-ch…
schlessera commentedon Nov 16, 2026
Delivered in #4087, squash
05bf0d6a0on main (claimclaim-3a374c49).docs/decisions/design-kit/components-and-interactions.md) now carries the 2026-11-08 ruling as a follow-on to the ui-react: controls inflate their visible box to 44px instead of extending the tap target past the paint #3252 hit-area section. It covers default reach for interactiveFilterRowpills, the paint sizes, the spacing, clipping and focus rules every caller must meet, the rejection of the opt-in branch forFilterRow, and the link to the brief's 320px/1280px mocks with their geometry applied to the default-reach branch.package-api.mdassessment and a changeset.Proof:
check:prpassed at the merged head. The candidate confirmation run was 43878205226. No runtime behaviour is claimed here; that belongs to #4086.