Skip to content

Pause's held form: the bars fill (DECISIONS 361) - #141

Merged
bmjcoding merged 8 commits into
mainfrom
claude/pause-held
Nov 24, 2026
Merged

bmjcoding merged 8 commits into
mainfrom
claude/pause-held

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

An icon-only pause toggle's held look (DECISIONS 361). Today a held pause looks like a hovered one, and exactly the same under more contrast: the plate alone, colour alone. DECISIONS 328 left it open.

What it does

  • Held, pause's two bars fill. It gains a selected form through glyphs/source.mjs and the generator, never redrawn in code. At rest it is byte-identical to main's drawing. Held, each bar is a closed, filled 1.5-unit loop: 1.5px of ink becomes 2.5px at 16.
  • The labelled toggle ("Pause animations" in the diagram's foot, the run head from 720 and the narrow menu's row) shows the filled bars instead of 328's check. That is 328's own rule ("its selected form, or the check where it has none"), now that pause has a form, so the run head has one held look on both sides of 720.
  • Motion:
    • rest to held is the morph, at duration-slow and ease-out;
    • held pause to play is a 100ms crossfade in a toggle's seat, with the bars filled to the end;
    • the play–pause morph keeps today's path both ways, with a map;
    • under reduced motion, a pressed toggle's glyph now crossfades over duration-fast, as foundations already said. React was swapping it instantly.
  • Forced colours and more contrast: no change. Held is Highlight with HighlightText, and the bars fill in currentColor.
  • The skill: _.glyphPair and _.glyphSeat; loops.js draws the pair once instead of swapping the SVG; diagram-motion.js uses the same seat.

For the owner: a rule exception to approve

pause becomes the one action glyph with a selected form. It breaks "actions are exactly three straight lines" and "actions keep their drawing". It joins copy, edit, trash and download as a named exception. The reason: pause is the glyph of a toggle that stays held. It is written into foundations, AGENTS.md and the glyph source.

Pictures, in .review/council/pause-toggle/build/:

  • matrix-{dark,light,dark-more,light-more,forced}.png: rest, hover, focus, held, held with hover and held with focus, at sm and md, before (main) and now;
  • place-*.png: the site header, the narrow menu, the run head and the diagram's foot;
  • motion-*.png: the morph and the reduced-motion crossfade frame by frame, both ways, with the seat's box moving 0px in every frame.

The reduced-motion fix reaches

Every pressed secondary or ghost Button, IconButton, ToolbarButton or ToolbarIconButton with a core glyph that has a selected form. Among Basalt's own components, that is the pause toggle in its four places. Every other pressed toggle belongs to an app.

Not reached: MorphIcon, the done seat, the check seat, and the nav, tab bar and disclosure seats.

Open edges:

  • A press before the glyph engine loads still swaps at once; the toggle loads the engine at mount.
  • A morph already running when reduced motion turns on settles at once.

Council

Light round.

  • Drafts: Opus, in Neon's absence: A (bars fill), B (play pressed), C (check pressed).
  • Check: Astra: A 8/10, B 5/10, C 4/10, today 2/10.
  • Decision: Opus chose A.
  • Final position: Astra objected twice (the held pause ↔ play swap path, and the reduced-motion crossfade); both were revised.
  • Review: not reviewed by a seat after the build.

Checks

Lint (5 of 5 steps), both typechecks, npm run build and npm run sizes pass. No tests were run (DECISIONS 330, 359). The new and updated tests (glyph source, morph pairs, the crossfade frames, forced colours, the skill's pair, parity) are written, not run.

Sizes

  • PauseGlyph: +13.9% (2,819 → 3,210).
  • LoopsToggle: +1.3%.
  • The whole package up front: +0.1%.
  • The skill's toggle budget rises to 2,400 and glyph to 2,100, with reasons.

🤖 Generated with Claude Code

bmjcoding and others added 8 commits November 24, 2026 13:03
Each bar is a closed loop 1.5 units wide on its own centreline, drawn through
glyphs/source.mjs and the generator; at rest each loop folds to the line drawn
before, so the resting glyph is unchanged. Pause joins copy, edit, trash and
download as a named rich action, and is the one action with a selected form.

The play-pause pair gets the slot map [0, 4, 1, 2, 3, 5, 6, 7], which keeps
today's path at rest both ways. A pair with a filled end is no morph: the
engine swaps it, since a pair's frames carry no fill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…S 361)

Foundations says reduced motion is the 100ms crossfade for a pressed toggle;
React swapped at once. Button and IconButton now pass `crossfade` on every
pressed toggle's seat. On that seat a change that ends without a flight
(reduced motion, a pair the engine refuses such as held pause and play, or
the swap after an interruption) is the duration-fast crossfade of the two
settled drawings, in one svg (CrossfadeSvg), so the box does not change; at
animationend the seat is Icon again. Done seats, MorphIcon and seats without
`crossfade` keep what they had. Doc comments say pause now fills.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A .btn-check whose glyph has a selected form draws both forms in one box
([data-pair]) and no check, and crossfades to the selected one while
pressed; any other glyph keeps the check, matching React's changes(). The
hold's icon-only toggle draws the pair once instead of swapping its svg on
every change, so held is the filled bars by a 100ms crossfade, painted at once
under data-still. The diagram's foot draws its seat through the same helper.

Budgets (recorded in modules.json): toggle 1950 to 2400 and glyph 1950 to
2100, for the pair and the seat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The words the decision gives, verbatim: pause is two closed bars among the
rich actions, and the one action whose bars fill when held; the pressed
toggle and LoopsToggle say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Written while tests are paused (DECISIONS 330, 359); run when they resume.
The tests that used pause as the glyph with no selected form now use copy.
New: pause at rest is today's drawing and held is two filled loops; pause is
the one action with a selected form; the play-pause path at rest is today's
both ways; a filled end is no pair; a pressed toggle's reduced-motion
crossfade at 0, 50 and 100ms both ways in the seat's box, then Icon again;
held pause to play crossfades with the bars filled to the end; the skill's
pair in the icon toggle and the Button seat, and a parity case for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PauseGlyph 2,819 to 3,210 bytes (eight slots and a rest form),
LoopsToggleIcon 18,242 to 18,645, LoopsToggle 30,856 to 31,271; the whole
package up front +487 minified, the style sheet +273.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fact)

A pressed toggle's seat crossfades over duration-fast under reduced motion
(DECISIONS 361); every other seat still swaps at once. AGENTS.md doesn't
carry these words, so it is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ize table regenerated

modules.json merged as data: main's file with this branch's own changes (the toggle and
glyph budgets and the comment's added reason).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bmjcoding
bmjcoding marked this pull request as ready for review November 24, 2026 19:14
@bmjcoding
bmjcoding merged commit 9878486 into main Nov 24, 2026
@bmjcoding
bmjcoding deleted the claude/pause-held branch November 24, 2026 19:14
bmjcoding added a commit that referenced this pull request Nov 24, 2026
…ble regenerated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant