diff --git a/.changeset/4086-filterrow-default-reach.md b/.changeset/4086-filterrow-default-reach.md
new file mode 100644
index 0000000000..5c80350e33
--- /dev/null
+++ b/.changeset/4086-filterrow-default-reach.md
@@ -0,0 +1,8 @@
+---
+"@schlessera/brain-ui-kit": patch
+"@schlessera/brain-ui-react": patch
+---
+
+Interactive `FilterRow` pills now reach a 44px touch target by default. Under `any-pointer: coarse` each pill with an `onClick` carries `.bk-hit`, keeps its 20.5px paint height and paints at least 44px wide, and the strip clips only horizontally so the vertical reach is not cut off. Under a fine pointer, and for decorative pills, nothing changes. `FilterRowProps` is unchanged. A caller that puts a reaching control within 11.75px above or below a reaching row should widen its coarse-pointer row gap.
+
+The file viewer's Preview/Raw pills no longer draw a 44px box, and the Actions dismissal reasons use the kit pill (29.5px) and reach 44px on touch instead of drawing a 44px pill. Their names, pressed state and keyboard behaviour are unchanged.
diff --git a/docs/decisions/design-kit/components-and-interactions.md b/docs/decisions/design-kit/components-and-interactions.md
index 446884f8b8..31ef4a03de 100644
--- a/docs/decisions/design-kit/components-and-interactions.md
+++ b/docs/decisions/design-kit/components-and-interactions.md
@@ -1302,11 +1302,16 @@ Under a fine pointer both are their paint, as #3252 already rules.
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).
+ its ends (#1775). The strip's clipping is the `.bk-filter-row` class, since
+ an inline style cannot clip one axis under one pointer only.
- 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.
+ (`any-pointer-coarse:gap-y-5`), so that the 11.75px pill reach and the
+ 7.8px reach of an `sm` Button on the line above would still clear each
+ other. As built (#4086), every control that can sit on the line above is a
+ 44px box with no reach (the untrusted mark is an `md` `IconButton`), which
+ 12px already clears; the wider gap keeps the rule when a reaching control is
+ put there.
- 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
@@ -1319,12 +1324,25 @@ Under a fine pointer both are their paint, as #3252 already rules.
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
+horizontal reach must be at most 3px, so an interactive pill must be at least
+38px wide, or its row must widen 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.
+**Narrow pills paint 44px wide on touch (maintainer, 2026-11-16, #4086).**
+The audit measured three interactive pills under 44px: the viewer's Raw
+(40px) and the graph Direction row's In (31px) and Out (41px). Their
+sideways reach would be clipped at the strip's ends, where the strip keeps
+clipping, and In and Out would overlap across the 6px gap. So under a coarse
+pointer an interactive pill paints at least 44px wide, label centred
+(`.bk-filter-row > .bk-hit`). No pill then reaches sideways, which meets the
+38px rule above for every caller without a per-caller exception. Height and
+fine-pointer paint are unchanged. Rejected: a 38px minimum under every
+pointer, because an end pill would still fall up to 3px short and the
+fine-pointer paint would change, and per-caller fixes, because each new
+narrow pill would meet the same problem.
+
**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
diff --git a/packages/ui-kit/src/rows/FilterRow.tsx b/packages/ui-kit/src/rows/FilterRow.tsx
index fd7ad95e25..76774935b7 100644
--- a/packages/ui-kit/src/rows/FilterRow.tsx
+++ b/packages/ui-kit/src/rows/FilterRow.tsx
@@ -36,6 +36,18 @@ import { accent, color, font, token } from "../tokens.js";
* just focused rather than on a positional guess into `items`: the DOM walk
* skips decorative pills, so in a mixed row the two indexes diverge and firing
* `items[n]` would filter by the wrong pill.
+ *
+ * ## Every interactive pill reaches 44px (#4086)
+ *
+ * Under `any-pointer: coarse` each pill with an `onClick` carries `.bk-hit`,
+ * so its target reaches 44px past its 20.5px paint, and it paints at least
+ * 44px wide, so it never reaches sideways. The strip then clips only
+ * horizontally (`.bk-filter-row`), which lets the vertical reach through.
+ * A fine pointer keeps the paint and the strip as they are. Decorative pills
+ * never reach. The neighbour rule still binds the caller: a reaching control
+ * above or below the row needs a gap of at least the sum of the two vertical
+ * reaches, 11.75px for the pill, so a row that wraps under a neighbour widens
+ * its row gap under a coarse pointer (the design-kit record has the numbers).
*/
export interface FilterItem {
label: string;
@@ -65,10 +77,11 @@ export function FilterRow(p: FilterRowProps) {
const anyInteractive = eligible.includes(true);
const roving = useRoving(eligible, active);
+ // The strip's clipping lives in `.bk-filter-row`, because under a coarse
+ // pointer it clips one axis only, which an inline style cannot express.
const row: CSSProperties = {
display: "flex",
gap: 6,
- overflow: "hidden",
boxSizing: "border-box",
width: "100%",
};
@@ -92,7 +105,7 @@ export function FilterRow(p: FilterRowProps) {
}
return (
-
+
{src.map((item, i) => {
const on = i === active;
const act = Boolean(item.onClick);
@@ -101,6 +114,9 @@ export function FilterRow(p: FilterRowProps) {
borderRadius: 999,
padding: "4px 10px",
whiteSpace: "nowrap",
+ // Centred for the coarse-pointer 44px minimum width; a pill at its
+ // natural width has no free space to centre in.
+ textAlign: "center",
font: `500 10.5px/1 ${mono ? font.mono : font.body}`,
// A filter pill IS a chip — same shape, same 40% border and 10% tint —
// so it reads the chip ramp rather than minting a second one.
@@ -125,7 +141,8 @@ export function FilterRow(p: FilterRowProps) {
// properties, so it takes wave 1's `.bk-control` rather than
// `.bk-row`. The unpadded strip clips,
// so its ring is inset rather than extending beyond the pill.
- className={act ? "bk-control bk-control-inset" : undefined}
+ // `.bk-hit` reaches 44px under a coarse pointer (#4086).
+ className={act ? "bk-control bk-control-inset bk-hit" : undefined}
role={act ? "tab" : undefined}
aria-selected={act ? on : undefined}
tabIndex={act ? roving.tabIndexFor(i) : undefined}
diff --git a/packages/ui-kit/src/tokens.css b/packages/ui-kit/src/tokens.css
index 4f0e6e2949..d5699694cb 100644
--- a/packages/ui-kit/src/tokens.css
+++ b/packages/ui-kit/src/tokens.css
@@ -1647,6 +1647,20 @@
}
}
+/* `FilterRow`'s strip (#4086, ruled on #3531). Every interactive pill reaches
+ * by default, so under a coarse pointer the strip clips only horizontally:
+ * `overflow-x: clip` leaves `overflow-y` visible, where `hidden` would turn it
+ * into `auto` and cut the pills' 11.75px vertical reach off. Pills never
+ * overflow vertically, so paint is unchanged. An interactive pill also paints
+ * at least 44px wide there, so no pill reaches sideways: nothing is clipped at
+ * the strip's ends and no reach crosses the 6px gap into a neighbour. A fine
+ * pointer keeps the strip and the pills exactly as they were. */
+.bk-filter-row { overflow: hidden; }
+@media (any-pointer: coarse) {
+ .bk-filter-row { overflow-x: clip; overflow-y: visible; }
+ .bk-filter-row > .bk-hit { min-width: 44px; }
+}
+
/* ── Rows ─────────────────────────────────────────────────────────────────
*
* A full-width row is not a control, and the design separates them at exactly
diff --git a/packages/ui-kit/tests/visual/filter-row-targets.visual.tsx b/packages/ui-kit/tests/visual/filter-row-targets.visual.tsx
new file mode 100644
index 0000000000..4a8aa970d2
--- /dev/null
+++ b/packages/ui-kit/tests/visual/filter-row-targets.visual.tsx
@@ -0,0 +1,118 @@
+///
+/**
+ * `FilterRow` reaches 44px by default (#4086, ruled on #3531).
+ *
+ * Runs in the rail-fine, rail-coarse and rail-mixed projects, each a native
+ * pointer premise with no matchMedia mock. Under a coarse pointer every
+ * interactive pill carries `.bk-hit`, keeps its 20.5px paint height, paints at
+ * least 44px wide, and owns `elementFromPoint` 1px inside each edge of its
+ * 44px target: at the strip's start, at its end, and beside a neighbour 6px
+ * away. The strip clips only horizontally there, so the vertical reach is not
+ * cut off. Under a fine pointer the pill is its paint, exactly as before.
+ */
+import { createElement } from "react";
+import { flushSync } from "react-dom";
+import { createRoot, type Root } from "react-dom/client";
+import { afterEach, expect, inject, test, vi } from "vitest";
+import { commands, page, userEvent } from "vitest/browser";
+import { FilterRow } from "../../src/rows/FilterRow.js";
+import "../../src/styles.css";
+import { OWNED, edgeOwners, targetRect } from "../../../ui-react/tests/browser/hit-reach.js";
+
+let root: Root | undefined;
+let host: HTMLDivElement | undefined;
+afterEach(() => {
+ if (root) flushSync(() => root!.unmount());
+ host?.remove();
+ host = undefined;
+ root = undefined;
+});
+
+function premise() {
+ const mode = inject("railPointer");
+ expect(matchMedia("(any-pointer: coarse)").matches, "native coarse pointer premise").toBe(mode !== "fine");
+ return mode !== "fine";
+}
+
+// The graph's Direction row: "In" paints 31px wide at the kit's pill size,
+// "Out" 41px, "Both" 46px. The two narrow ones are the strip's first pill
+// and its 6px neighbour, the two places a horizontal reach would fail.
+const LABELS = ["In", "Out", "Both"];
+
+type Item = { label: string; onClick?: ReturnType void>> };
+
+async function mount(items: Item[] = LABELS.map(label => ({ label, onClick: vi.fn<() => void>() }))) {
+ await page.viewport(320, 400);
+ host = document.createElement("div");
+ // Padding keeps the vertical reach inside the stage, so a probe that misses
+ // lands on the stage rather than outside the page.
+ host.style.cssText = "width:288px;padding:24px 16px;background:var(--bk-color-surface)";
+ document.body.append(host);
+ root = createRoot(host);
+ flushSync(() => root!.render(createElement(FilterRow, { items, active: 0, mono: false })));
+ const strip = host.firstElementChild as HTMLElement;
+ const pills = [...strip.children] as HTMLElement[];
+ return { strip, pills, items };
+}
+
+test("every interactive pill reaches 44px and owns each edge of its target", async () => {
+ const coarse = premise();
+ const { pills } = await mount();
+ for (const pill of pills) {
+ const label = pill.textContent!;
+ const box = pill.getBoundingClientRect();
+ expect(pill.classList.contains("bk-hit"), `${label}: carries the hit-area utility`).toBe(true);
+ expect(box.height, `${label}: keeps the kit paint height`).toBeCloseTo(20.5, 0);
+ if (coarse) {
+ // No horizontal reach: the pill is at least as wide as its target.
+ expect(box.width, `${label}: paints at least 44px wide under a coarse pointer`).toBeGreaterThanOrEqual(44);
+ expect(targetRect(pill, 44).height, `${label}: target is 44px tall`).toBe(44);
+ }
+ expect(edgeOwners(pill, coarse ? 44 : 0), `${label}: owns each edge of its target`).toEqual(OWNED);
+ }
+});
+
+test("a fine pointer keeps the paint", async () => {
+ const coarse = premise();
+ const { pills } = await mount();
+ const widths = pills.map(pill => Math.round(pill.getBoundingClientRect().width));
+ if (coarse) expect(widths.every(width => width >= 44), `coarse widths ${widths}`).toBe(true);
+ else expect(widths[0], "In keeps its 31px paint under a fine pointer").toBeLessThan(38);
+});
+
+test("the strip clips horizontally only, under a coarse pointer", async () => {
+ const coarse = premise();
+ const { strip } = await mount();
+ const css = getComputedStyle(strip);
+ expect({ x: css.overflowX, y: css.overflowY }).toEqual(coarse ? { x: "clip", y: "visible" } : { x: "hidden", y: "hidden" });
+});
+
+// A mouse click, not a tap: Chromium's touch adjustment snaps a tap near a
+// control onto it, so a tap passes with no reach at all. The mixed lane has
+// reach (any-pointer: coarse) and a mouse, so it proves the reach clicks.
+if (inject("railPointer") !== "coarse") test("a real click on the extended top edge selects that pill", async () => {
+ const coarse = premise();
+ const { pills, items } = await mount();
+ const out = pills[1]!;
+ const box = out.getBoundingClientRect();
+ // 1px inside the top of the 44px target, which is 11.75px above the paint.
+ await commands.overlayMouse({ x: box.left + box.width / 2, y: coarse ? targetRect(out, 44).top + 1 : box.top + 1 });
+ expect(items[1]!.onClick, "Out takes its own extended edge").toHaveBeenCalledTimes(1);
+ expect(items[0]!.onClick).not.toHaveBeenCalled();
+ expect(items[2]!.onClick).not.toHaveBeenCalled();
+});
+
+test("static pills gain no target and no width", async () => {
+ premise();
+ const { pills } = await mount(LABELS.map(label => ({ label })));
+ for (const pill of pills) expect(pill.classList.contains("bk-hit"), `${pill.textContent}: static`).toBe(false);
+ expect(Math.round(pills[0]!.getBoundingClientRect().width), "a static In keeps its paint").toBeLessThan(38);
+});
+
+test("focus keeps the inset ring", async () => {
+ premise();
+ const { pills } = await mount();
+ await userEvent.tab();
+ const css = getComputedStyle(pills[0]!);
+ expect({ active: document.activeElement === pills[0], offset: css.outlineOffset, style: css.outlineStyle }).toEqual({ active: true, offset: "-2px", style: "solid" });
+});
diff --git a/packages/ui-kit/vitest.config.ts b/packages/ui-kit/vitest.config.ts
index 660e7ece92..3c73ed6cfc 100644
--- a/packages/ui-kit/vitest.config.ts
+++ b/packages/ui-kit/vitest.config.ts
@@ -100,8 +100,9 @@ const railProject = (mode: "fine" | "coarse" | "mixed") => ({
// (#950) and the #929 reach proof (#953) run here too, for the real
// pointer; they need the consumer stylesheet. Button's hover text
// contrast (#974) and the palette's reason rows (#1106) are measured
- // under all three pointers as well.
- include: ["tests/visual/native-buttons.visual.tsx", "tests/visual/side-rail-targets.visual.tsx", "tests/visual/button-hover-contrast.visual.tsx", "tests/visual/overlay-targets.visual.tsx", "tests/visual/session-strip.visual.tsx", "tests/visual/pending-follow-ups.visual.tsx", "tests/visual/palette-reasons.visual.tsx", "tests/visual/status-indicator-targets.visual.tsx", "../ui-react/tests/browser/desktop-navigation.pointer.tsx", "../ui-react/tests/browser/keyboard-hints.pointer.tsx", "../ui-react/tests/browser/phone-navigation.pointer.tsx", "../ui-react/tests/browser/destination-press.pointer.tsx", "../ui-react/tests/browser/working-sessions.pointer.tsx", "../ui-react/tests/browser/session-drafts.pointer.tsx", "../ui-react/tests/browser/navigation-reach.*.pointer.tsx", "../ui-react/tests/browser/hit-reach.*.pointer.tsx", "../ui-react/tests/browser/recordings-tray.offline.tsx", "../ui-react/tests/browser/dictation-notice.pointer.tsx", "../ui-react/tests/browser/attach-tooltip.pointer.tsx", "../ui-react/tests/browser/composer-mic.pointer.tsx", "../ui-react/tests/browser/overlay-stacking.pointer.tsx", "../ui-react/tests/browser/session-profile.pointer.tsx", "../ui-react/tests/browser/turn-budget.pointer.tsx"],
+ // under all three pointers as well, and so is FilterRow's default reach
+ // (#4086).
+ include: ["tests/visual/native-buttons.visual.tsx", "tests/visual/filter-row-targets.visual.tsx", "tests/visual/side-rail-targets.visual.tsx", "tests/visual/button-hover-contrast.visual.tsx", "tests/visual/overlay-targets.visual.tsx", "tests/visual/session-strip.visual.tsx", "tests/visual/pending-follow-ups.visual.tsx", "tests/visual/palette-reasons.visual.tsx", "tests/visual/status-indicator-targets.visual.tsx", "../ui-react/tests/browser/desktop-navigation.pointer.tsx", "../ui-react/tests/browser/keyboard-hints.pointer.tsx", "../ui-react/tests/browser/phone-navigation.pointer.tsx", "../ui-react/tests/browser/destination-press.pointer.tsx", "../ui-react/tests/browser/working-sessions.pointer.tsx", "../ui-react/tests/browser/session-drafts.pointer.tsx", "../ui-react/tests/browser/navigation-reach.*.pointer.tsx", "../ui-react/tests/browser/hit-reach.*.pointer.tsx", "../ui-react/tests/browser/recordings-tray.offline.tsx", "../ui-react/tests/browser/dictation-notice.pointer.tsx", "../ui-react/tests/browser/attach-tooltip.pointer.tsx", "../ui-react/tests/browser/composer-mic.pointer.tsx", "../ui-react/tests/browser/overlay-stacking.pointer.tsx", "../ui-react/tests/browser/session-profile.pointer.tsx", "../ui-react/tests/browser/turn-budget.pointer.tsx"],
provide: { railPointer: mode, keyboardHintsLive: false },
browser: {
enabled: true,
@@ -229,7 +230,7 @@ export default mergeConfig(
// fail on the first story import because bun's runner has no Vite and
// cannot resolve `#.storybook/preview`. Two runners, two extensions.
include: ["tests/visual/**/*.visual.tsx"],
- exclude: ["tests/visual/native-buttons.visual.tsx", "tests/visual/rank-footer-touch.visual.tsx", "tests/visual/module-settings.visual.tsx", "tests/visual/subjects.visual.tsx", "tests/visual/dictation-panel.visual.tsx", "tests/visual/side-rail-targets.visual.tsx", "tests/visual/button-hover-contrast.visual.tsx", "tests/visual/overlay-targets.visual.tsx", "tests/visual/session-strip.visual.tsx", "tests/visual/pending-follow-ups.visual.tsx", "tests/visual/palette-reasons.visual.tsx", "tests/visual/status-indicator-targets.visual.tsx"],
+ exclude: ["tests/visual/native-buttons.visual.tsx", "tests/visual/filter-row-targets.visual.tsx", "tests/visual/rank-footer-touch.visual.tsx", "tests/visual/module-settings.visual.tsx", "tests/visual/subjects.visual.tsx", "tests/visual/dictation-panel.visual.tsx", "tests/visual/side-rail-targets.visual.tsx", "tests/visual/button-hover-contrast.visual.tsx", "tests/visual/overlay-targets.visual.tsx", "tests/visual/session-strip.visual.tsx", "tests/visual/pending-follow-ups.visual.tsx", "tests/visual/palette-reasons.visual.tsx", "tests/visual/status-indicator-targets.visual.tsx"],
browser: {
enabled: true,
// The link card's no-request proof reads the network from
diff --git a/packages/ui-react/src/components/activity/durable-actions.tsx b/packages/ui-react/src/components/activity/durable-actions.tsx
index 10687147ac..be68691bfa 100644
--- a/packages/ui-react/src/components/activity/durable-actions.tsx
+++ b/packages/ui-react/src/components/activity/durable-actions.tsx
@@ -462,7 +462,9 @@ function DismissConfirm({
return (
Dismiss this decision?
-
+ {/* #4086: the reasons reach 7.25px past their 29.5px kit pill, so a wrapped
+ row needs 16px between rows under a coarse pointer. */}
+