Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 72 additions & 5 deletions docs/decisions/design-kit/components-and-interactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1274,11 +1274,78 @@ A 44px box stays where it is the design, or where it draws no visible box:
| The live conversation strip | Its bar is laid out around 44px controls (its 44/52px rows). It is a touch-first surface, not inflated `sm` or `md` Buttons. (The dictation sheet's primary button was here too until #3694 replaced the sheet with the voice field.) |
| The crash fallback (`app-error-boundary`) | It renders without the kit and uses system colours. |

Two sites still draw a visible pill 44px tall, and neither has a kit size to
move to. The file viewer's Preview/Raw `FilterRow` pills cannot reach,
because `FilterRow`'s strip clips them with `overflow: hidden`. The
Actions dismissal-reason pills are raw pressed chips, and the kit `Chip` is
not interactive. Each needs a design decision before it can change (#3531).
Two sites drew a visible pill 44px tall, and neither had a kit size to move
to: the file viewer's Preview/Raw `FilterRow` pills, which could not reach
because `FilterRow`'s strip clips them with `overflow: hidden`, and the
Actions dismissal-reason pills, which are raw pressed chips beside a
non-interactive kit `Chip`. The ruling for both follows.

### 2026-11-08 — `FilterRow` pills reach by default; dismissal reasons take the kit pill (#3531)

**Decision (maintainer, 2026-11-08).** Neither site keeps a 44px paint. Both
paint at an existing kit size and reach 44px under `any-pointer: coarse`.
**Every interactive `FilterRow` pill reaches by default**, with no prop for
it. Static pills stay non-interactive and never reach. The runtime change and
its caller audit are #4086.

**Paint sizes.** The viewer's Preview/Raw pills keep the kit `FilterRow` pill:
`4px 10px` padding, 10.5px/1 type, a 1px border, about **20.5px** tall, so
the vertical reach is about 11.75px a side. The dismissal reasons take the
kit `Chip variant="pill"` geometry: `6px 12px` padding, 11.5px/1.35 type,
radius 999, about **29.5px** tall, so the vertical reach is 7.25px a side.
Under a fine pointer both are their paint, as #3252 already rules.

**How each meets 44px.**

- `FilterRow` puts `.bk-hit` on every pill with an `onClick`. Under a coarse
pointer its strip clips only horizontally (`overflow-x: clip;
overflow-y: visible`): `clip` leaves the other axis `visible`, where
`hidden` would turn it into `auto`. Horizontal overflow and paint are
unchanged. Focus keeps `bk-control-inset`, because the strip still clips at
its ends (#1775).
- The viewer drops its `[role=tab]` 44px overrides. Under a coarse pointer it
widens the gap between its wrapped toolbar lines from 12px to 20px
(`any-pointer-coarse:gap-y-5`), since the 11.75px pill reach and the
7.8px reach of an `sm` Button on the line above total more than 12px.
- The dismissal reasons stay raw `aria-pressed` buttons, swap `bk-row
min-h-11` for `bk-control bk-hit`, and widen their wrapped-row gap to 16px
under a coarse pointer (`any-pointer-coarse:gap-y-4`, the row gap the
reaching Buttons above already use), since two 7.25px reaches total 14.5px.
`bk-control` puts the focus ring outside, which is safe because the group
does not clip. Accessible names, `aria-description` and pressed state stay
as they are.

**Spacing, clipping and focus bind every caller.** Default reach does not
permit overlap. The 44px floor, the coarse-pointer condition and the neighbour
rule (gap ≥ the sum of the two facing reaches) still hold, and a caller that
breaks them is corrected, not exempted. With `FilterRow`'s 6px gap each side's
horizontal reach must be at most 3px, so **an interactive pill is at least
38px wide**, or its row widens the gap to meet the same rule. Each caller is
also checked for an ancestor that clips its vertical reach, wrapped or stacked
neighbours that need a wider coarse-pointer row gap, labels that wrap, and
focus rings that would be cut. #4086 lists every interactive caller.

**Why default, not opt-in.** The brief proposed an opt-in `reach` prop,
mirroring `Button`'s, and an audit of the other callers later. That branch is
**superseded for `FilterRow`**. Reach by default brings every interactive
filter row up to the touch floor at once, and it makes the caller audit part
of the change instead of a follow-up that can lapse. `Button`'s `reach` stays
opt-in, as recorded above.

**Rejected.** For the viewer: a segmented control (the kit has none, and a
new seam needs a second use), keeping 44px as the design (a 44px pill around
10.5px type is the defect), and padding the strip to absorb the reach (it
would grow every `FilterRow` by 23px under fine pointers too). For the
dismissal reasons: an interactive kit `Chip` (the only pressed chip, so no
second use), `ChoiceOption` rows (they read as a required, effectful choice,
where the copy says a reason "never grants or stops anything"), and Buttons
(`Button` has no pressed state).

**Mocks.** The [design brief](https://github.com/schlessera/brain-kit/issues/3531#issuecomment-6611584754)
carries the 320px and 1280px mocks, the edge tables and the coarse-pointer
gap arithmetic. Its geometry applies unchanged to the default-reach branch.
Only its `reach` prop and its opt-in recommendation (P1) are replaced by this
ruling.

## 2026-11-02 — D57: collapsibles follow the job, not one Disclosure (#3253)

Expand Down
Loading