Skip to content

Give every corner mark the panel fold's face, and every popover close the cross - #3606

Merged
max-sixty merged 4 commits into
mainfrom
consistent-close-icons
Oct 22, 2026
Merged

max-sixty merged 4 commits into
mainfrom
consistent-close-icons

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

An attachment's removal and a drawing's Undo last stroke and Remove drawing were dark filled discs with a light icon, while the floating panel's fold, the same kind of round control riding a corner, was a disc of the panel's ground with a hairline ring, a lift and a dim icon. The user asked for the fold's treatment on the attachment's ✕. .lf-corner-mark (browser/styles/components/controls.css) is now the one face all four wear, and the icon carries the meaning: subtract folds, cross removes.

  • The disc is 20px everywhere (--corner-mark in browser/styles/theme.css), up from the attachments' 18px. Its reach is the aim floor on both axes (24px with a mouse, 44px under a finger); the fold's reach used to grow only vertically.
  • A surface sets --lf-ground and --lf-ring for what it raises. The panel already did this for its attached pictures as --lf-media-ground and --lf-media-ring, set on the field; it now sets the renamed pair once on the panel, and its marks and pictures both read them.
  • The panel's base button reset stops at .lf-corner-mark, as it already stops at the attachment shelf, so the fold takes the shared face rather than a panel press's.
  • The visual review's two popovers (Inspection settings, Threads on this case) closed with a "Close" text button; they now wear the quiet ✕ every other closable surface uses (closeControl's anatomy), titled with Esc.
  • leaf-dev stills gains page-comment-photo-hover (light and dark) and panel-corner-hover.

The panel's open view still closes with a down chevron: it lowers the view into the row rather than dismissing a surface, and came from the panel's design review (#2696).

Checked in Chromium and Firefox, light and dark, mouse and touch: the marks compute the same disc, ring, lift and ink, and hit-testing reaches the full aim floor. The fold's still is pixel-identical before and after.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 4 commits October 22, 2026 10:50
… the cross

An attachment's removal and Undo last stroke were a dark disc with a light
cross, while the panel's fold, the same kind of control riding a corner, was a
disc of the panel's ground with its ring, a lift and a dim icon. The user asked
for the fold's treatment on the attachment's cross. `.lf-corner-mark`
(controls.css) is now the one face both wear; the icon carries the meaning
(`subtract` folds, `cross` removes). Surfaces set `--lf-ground` and `--lf-ring`
for what they raise, which the panel already did for its pictures under the
names `--lf-media-ground` and `--lf-media-ring`. The disc is 20px everywhere
(`--corner-mark`), up from the attachment's 18px, with its reach at the aim
floor on both axes; the fold's reach was the floor only vertically.

The visual review's two popovers closed with a "Close" text button; they now
wear the quiet cross every other closable surface wears (`closeControl`).

`leaf-dev stills` gains the panel's attachment under the pointer, light and
dark, and the pointer at the panel's corner.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/assets/shadow.css
#	skills/leaf/assets/styles/components/response.css
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit 0898ffa into main Oct 22, 2026
3 checks passed
@max-sixty
max-sixty deleted the consistent-close-icons branch October 22, 2026 20:16
max-sixty added a commit that referenced this pull request Oct 25, 2026
Leaf had two styles for one kind of small icon press. Corner marks (the
floating panel's fold, an attachment's ×, a drawing's Undo last stroke
and Remove drawing) were 20px with 12px icons in the dim ink, which the
user chose on 22 October (#3606). Toolbar marks were different: a
draft's Edit, Save and Discard, and every Copy on a code block, an
`lf-code` listing and the playground's instruction. They were 26px, or
the block's line height for a lone Copy, with 16px icons, the muted ink
and a chip wash under the pointer. The user chose one style for both.

`.lf-mark` in `browser/styles/components/controls.css` is now the one
home for a mark's size (`--mark-size`, 20px), icon (12px), ink, hover
(full ink), focus ring and reach. Each seat keeps only its place and its
ground:

- `.lf-corner-mark` adds the absolute seat, a patch of the ground with
its ring and lift, and the forced-colours edge.
- `.lf-mark-bar` (`integration.css`) is the pill on a border.

Copy, a Web Awesome control, wears the face on its button part.

**Size.** The shared size is 20px, the corner marks' size from the 22
October decision. A toolbar mark works at that size: the pill is 24px
tall instead of 30px, and its icons are the corner marks' 12px.

**Behaviour changes**

- A code block's Copy no longer follows the block's line height, and
`--lf-code-copy-size` is gone (both came from #3830). Every Copy is
20px. That also covers what #3830 fixed, a 32px Copy on a 19px line.
`page-authoring.md` drops its line about the property, and the
compact-line test now checks that Copy is the mark's size on a compact
block and on a tall one.
- A toolbar spaces its marks so their reaches meet without overlapping
(`gap: max(2px, aim floor − mark)`). That gap is 4px with a mouse and
24px under a finger. A finger's draft marks used to be 44px-wide faces.
They are now 20px faces, each with a 44px reach.
- Every mark's focus ring now lies on the mark's own edge. It used to
stand 2px out on a corner mark, inside a draft's marks, and 3px out on a
lone Copy.
- A toolbar mark under the pointer no longer gets a chip wash. Its icon
goes to full ink, as a corner mark's does.
- Every copy control now draws Leaf's icons. `copyControl` slots
icons.js's copy, check and cross icons, and icons.js gains a copy icon.
Web Awesome's glyphs fill their box, so at the shared size Copy had
stood larger than the pencil beside it. This also reaches the heading
link, which passes `icon: "link"` instead of slotting its own, and the
panel's copy presses and About rows, which now draw the 16px Leaf copy
icon like the panel's other icons.

**Deleted:** `--corner-mark`, `--lf-draft-mark`, `--lf-code-copy-size`,
the draft's own mark size and ring rules, the Copy part's size and
padding arithmetic, and `copySize`/`setCopySize` in `code-copy.js`. The
draft's marks drop `lf-btn lf-quiet-action lf-draft-action`. `leaf-dev
stills` gains `release-draft-hover` and `native-code-copy-hover`.

**Checked**

- Chromium stills against main. The fold, an attachment's × and a
drawing's marks on hover are pixel-identical in light and dark. The
draft toolbar, code Copy, keyboard focus and the phone draft toolbar
changed as described.
- Firefox: the draft's marks compute the same 20px faces, 12px icons,
ink and radius. Keyboard focus on a draft mark (dark) and on the
drawing's Undo draws the ring on the mark's edge.
- Under a finger, a draft's marks have 44px reaches that meet without
overlapping.
- 46 focused browser tests on drafts, copy, the attachment shelf, the
drawing, the panel fold and heading links pass. `pnpm run test:runtime`,
`pnpm run check:browser` and `tests/model/test_interact_layer.py` pass.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.

2 participants