Mockup: one pill press + radius audit #936

Open
opened 2026-11-04 15:13:30 +00:00 by kayg · 1 comment
Owner

kayg 11-04: do all pills share a component and bounce on press? Search icon in a pill. What is the corner radius on the selection highlight?

Branch review/calendar-2 (head 43bf848c). Evidence is in the comment below.

kayg 11-04: do all pills share a component and bounce on press? Search icon in a pill. What is the corner radius on the selection highlight? Branch `review/calendar-2` (head 43bf848c). Evidence is in the comment below.
Author
Owner

What changed

  1. One press. A single rule in packages/ui/src/styles/base.css (scale 0.97, --ease-out, 150 ms, scale only, reduced-motion aware). Pill, .ib, .seg button, .press and the new .bounce class use it. 25 copies of a local :active { scale } are gone (swatches, play buttons, Selector, toast action, EmptyState, note bars, swipe actions, SideDock tabs, ...). no-handmade-pills.mjs rule 5 now fails on a new local copy (short allow-list of rows and inner parts, each with a reason). The Tasks/Contacts round + and mic are now the shared Pill (they had no bounce on a tap before).
  2. Search icon in the sidebar Filter field is the shared Pill (one bar-icon size, 20 px on desktop) inside a full-pill field.
  3. One bar-icon size. PageToolbar's 16 px override and its +4 px optical bump are removed; Share, ⋯, Archive, Trash all draw 20 px on desktop (measured: mail-thread-icons conv archive:20 trash:20, pt share:20 more:20).
  4. Memory list (Settings > AI): upstream's MemoryCard already has the edge-to-edge row tint (landed while I worked); my own CalPage edit was superseded, so nothing of it is in the diff.

Radius table (what I changed)

where old new container
sidebar Filter field with the search gateway (ListFilter, desktop) 10px 999px (full pill) the sidebar column, field height 32
magnifier button in that field own 7px box, bare icon Pill 999px, inset 2px the field (full pill: concentric, 16 - 2 = 14, drawn as a full pill)
Tasks/Contacts + and mic border-radius: 50% copy Pill 999px itself (circle)
Mail message ⋯ , note bars, swatches, play buttons their own press only unchanged radius, shared press n/a

I did not run a full automated sweep of every hover/selection/focus tint in the mockup. Upstream commits c2cb61e5, 6ef916a3, ea30041f (11-04) already moved pills to --r-pill, rows/tints/fields to --r-select, controls to --r-control; I checked the spots listed above and the Settings > AI memory list and found no other mismatch. A screenshot pass of every tint is still open if you want it.

Specs

  • no-handmade-pills.mjs: clean.
  • Playwright (chromium, dev-01, through the slot): final run on the rebased head, 173 passed: no-handmade-pills, tasks-tiers, note-bars, chrome, motion-rules, round9c-menu, tiers. Earlier full run: 298 passed, the last 2 (hold specs) fixed afterwards and passing.
  • Baseline on a3efb87c had 31 + 11 + 7 failing in chrome / round9c-menu / tasks-tiers / motion-rules / note-bars. Decided by reading the app: stale specs fixed (Places has no dock search and its profile pill opens Settings > Account, list Filter field exists, Settings heading is "Appearance", holds need a real touch, the Tasks app keeps an empty "Apps" bar mounted so .bar-wrap selectors are scoped to the note's bar, tooltips spec hovers only visible buttons). Real fixes: Sonner's 400 ms moves are now 280 ms (the 300 ms rule), the Cal "ring" keyframe starts at 0.9 not 0.85. No limit was loosened.

Press frames on the round + (Notes/Tasks dock)

Held scale is 0.97 on every pill measured (+, mic, Filter gateway). rAF deltas, 6 press+release runs, WebKit on the Mac VM (real GPU, std lock held): frames 33 to 34 per run, max 19 to 23 ms, p95 19 to 21 ms, 0 to 2 frames over 20 ms, none over 25 ms. (The Linux runs show 100+ ms deltas: no GPU, gesture-only, not performance.)

Before / after screenshots (before = a3efb87c, after = 43bf848c)

## What changed 1. **One press.** A single rule in `packages/ui/src/styles/base.css` (scale 0.97, `--ease-out`, 150 ms, `scale` only, reduced-motion aware). `Pill`, `.ib`, `.seg button`, `.press` and the new `.bounce` class use it. 25 copies of a local `:active { scale }` are gone (swatches, play buttons, Selector, toast action, EmptyState, note bars, swipe actions, SideDock tabs, ...). `no-handmade-pills.mjs` rule 5 now fails on a new local copy (short allow-list of rows and inner parts, each with a reason). The Tasks/Contacts round + and mic are now the shared `Pill` (they had no bounce on a tap before). 2. **Search icon** in the sidebar Filter field is the shared `Pill` (one bar-icon size, 20 px on desktop) inside a full-pill field. 3. **One bar-icon size.** PageToolbar's 16 px override and its +4 px optical bump are removed; Share, ⋯, Archive, Trash all draw 20 px on desktop (measured: `mail-thread-icons conv archive:20 trash:20, pt share:20 more:20`). 4. **Memory list** (Settings > AI): upstream's `MemoryCard` already has the edge-to-edge row tint (landed while I worked); my own CalPage edit was superseded, so nothing of it is in the diff. ## Radius table (what I changed) | where | old | new | container | |---|---|---|---| | sidebar Filter field with the search gateway (`ListFilter`, desktop) | 10px | 999px (full pill) | the sidebar column, field height 32 | | magnifier button in that field | own 7px box, bare icon | `Pill` 999px, inset 2px | the field (full pill: concentric, 16 - 2 = 14, drawn as a full pill) | | Tasks/Contacts + and mic | `border-radius: 50%` copy | `Pill` 999px | itself (circle) | | Mail message ⋯ , note bars, swatches, play buttons | their own press only | unchanged radius, shared press | n/a | I did **not** run a full automated sweep of every hover/selection/focus tint in the mockup. Upstream commits `c2cb61e5`, `6ef916a3`, `ea30041f` (11-04) already moved pills to `--r-pill`, rows/tints/fields to `--r-select`, controls to `--r-control`; I checked the spots listed above and the Settings > AI memory list and found no other mismatch. A screenshot pass of every tint is still open if you want it. ## Specs - `no-handmade-pills.mjs`: clean. - Playwright (chromium, dev-01, through the slot): final run on the rebased head, 173 passed: no-handmade-pills, tasks-tiers, note-bars, chrome, motion-rules, round9c-menu, tiers. Earlier full run: 298 passed, the last 2 (hold specs) fixed afterwards and passing. - Baseline on `a3efb87c` had 31 + 11 + 7 failing in chrome / round9c-menu / tasks-tiers / motion-rules / note-bars. Decided by reading the app: stale specs fixed (Places has no dock search and its profile pill opens Settings > Account, list Filter field exists, Settings heading is "Appearance", holds need a real touch, the Tasks app keeps an empty "Apps" bar mounted so `.bar-wrap` selectors are scoped to the note's bar, tooltips spec hovers only visible buttons). Real fixes: Sonner's 400 ms moves are now 280 ms (the 300 ms rule), the Cal "ring" keyframe starts at 0.9 not 0.85. No limit was loosened. ## Press frames on the round + (Notes/Tasks dock) Held scale is 0.97 on every pill measured (+, mic, Filter gateway). rAF deltas, 6 press+release runs, WebKit on the Mac VM (real GPU, std lock held): frames 33 to 34 per run, max 19 to 23 ms, p95 19 to 21 ms, 0 to 2 frames over 20 ms, none over 25 ms. (The Linux runs show 100+ ms deltas: no GPU, gesture-only, not performance.) ## Before / after screenshots (before = a3efb87c, after = 43bf848c) - **1440 sidebar Filter + magnifier, before**: https://git.kayg.org/attachments/427b8dda-ee1e-4f21-8f90-d5e5cb7d5189 - **1440 sidebar Filter + magnifier, after**: https://git.kayg.org/attachments/acdc6ab8-09e4-4a39-a992-5cd1f702d29e - **1440 Automations, before**: https://git.kayg.org/attachments/d58b4fc7-b302-432e-a417-80da2ee1b88f - **1440 Automations, after**: https://git.kayg.org/attachments/35129ba7-93b2-4b19-b5c3-a608bfeedd0b - **1440 Notes, before**: https://git.kayg.org/attachments/77b207a2-4154-4fbd-9284-7c32ad9e7ee3 - **1440 Notes, after**: https://git.kayg.org/attachments/88d6b2d5-9070-488c-a9d0-bfe4b863c774 - **402 Tasks dock (+ and mic), before**: https://git.kayg.org/attachments/bdf7d96d-52a2-41dd-a989-6b2d6f7a96d2 - **402 Tasks dock (+ and mic), after**: https://git.kayg.org/attachments/7cab5396-9995-468d-8dac-29c5fa38cadf - **402 + held, before**: https://git.kayg.org/attachments/b860ab2a-8afd-4639-a51e-8cf3b08963cd - **402 + held, after**: https://git.kayg.org/attachments/4502a843-7a57-47ae-b6e9-b5996c2544dd - **402 mic held, before**: https://git.kayg.org/attachments/54715a84-f76e-4ffc-a7c1-99fcebb7b661 - **402 mic held, after**: https://git.kayg.org/attachments/31813789-e812-4bc4-a64c-1be00586a120 - **1440 Filter magnifier held, before**: https://git.kayg.org/attachments/fe313911-fd18-40e9-946f-6a4994ba1698 - **1440 Filter magnifier held, after**: https://git.kayg.org/attachments/125ae735-d575-452b-ad1e-4ce528500392 - **1440 memory, before**: https://git.kayg.org/attachments/dca7cf10-46f5-4c97-9453-7dc7ce3174b7 - **1440 memory, after**: https://git.kayg.org/attachments/f5c8c710-235f-4038-95ab-fa4e993e1073 - **1440 memory hover, before**: https://git.kayg.org/attachments/fc37a370-1bb3-4740-8eb5-682c24da7aa3 - **1440 memory hover, after**: https://git.kayg.org/attachments/62399e1f-b255-4bdb-bb3d-bfaf4ab425b9 - **402 memory, before**: https://git.kayg.org/attachments/3af88bd4-5039-4712-9219-8578b7e27f42 - **402 memory, after**: https://git.kayg.org/attachments/8c5cbd4b-1f68-4e4c-b098-09e38adc0d74 - **Mail thread top right (Archive · Trash | Share · ⋯), after, all 20 px**: https://git.kayg.org/attachments/d63a89e0-1dca-4f3c-a21d-06f82cc05a0c
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#936
No description provided.