Skip to content

Let the floating panel's own controls opt into its face - #3765

Merged
max-sixty merged 10 commits into
mainfrom
panel-face-opt-in
Oct 23, 2026
Merged

max-sixty merged 10 commits into
mainfrom
panel-face-opt-in

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The floating panel gave its face to every bare button, input and textarea under it (@layer lf-base { @scope (.lf-floating-panel) to (.lf-fp-outlet, .lf-fp-response, .lf-composer-media, .lf-corner-mark) }), and a second exception, button:where(:not(.lf-fp-editors *)), kept its own vertical reach off the editors. So every component the panel seated wore the face until it joined the exclusion list: the comment recorded three leaks (a chosen reaction's fill, the shelf's ×, the seated box's Send), and the review of this change found a fourth that the list still missed, a thread's held-news notice washing on hover, which its own rule says it declines. It was the same shape as the CSS #3710 fixed.

Now the panel's own controls opt in. lf-fp-face is on every control the panel's templates and builders draw (floating-panel.js): the leaf, the row's marks and presses, the menu's rows and lists, the views' rows, tabs, back, search, Resolve, Next unread, On the page, New reply, On's answers and presses, Full quote, the page editor's Send, the copy text and the menu's links. The exclusion list and the editors exception are gone, so a component the panel seats brings its own face and nothing else. The rules keep their old specificity (button:where(.lf-fp-face) for button, and so on) and their layer.

The panel's reach was a second copy of the shared reach #3738 added in browser/styles/components/surfaces.css, kept only because it was vertical-only. button.lf-fp-face joins that list and the copy goes. Vertical-only did not need to stay: the shared rule reaches sideways only where a face is narrower than the floor, and the panel's presses are floor-wide, which a computed-style snapshot under a coarse pointer confirms (no ::after inset changed on any panel control). The one exception the review found, an On answer as short as "A", now stands as wide as the floor (min-width: var(--aim-floor)), so its reach lies over no answer beside it; that is the one visible change, under a finger, for answers shorter than the floor.

Checked with a computed-style snapshot of every control in the panel (font, colour, background, border, radius, padding, height, cursor, wrapping, position and the reach's insets) across rest, the menu and each of its lists, Threads and its search, a thread and its drafted reply, On, a page draft and page search, on two examples at desktop and under --touch, comparing this change with its parent: the only differences are seated icon-only buttons (the reply box's Send and Dictate, page search's steps) no longer taking white-space: nowrap, which draws nothing. tests/journeys/test_render_controls.py -k every_control_the_layer_offers --run-nightly, the panel's row tests (-k keeps_its_line) and 35 focused panel tests pass.

Drift: the shared reach is in the page's vendored stylesheet, so a page vendored before this change has no reach on the panel's presses until it is re-vendored (root AGENTS.md, "Pages across Leaf updates"); under a finger the row's 34px presses then fall short of the 44px floor.

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

max-sixty and others added 10 commits October 23, 2026 05:19
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The panel gave its face to every bare button, input and textarea under it, less
a list of the components it stopped at, which each newly seated component had to
join. Its controls now opt in with lf-fp-face, and its vertical reach joins the
shared reach in surfaces.css. An On answer as short as A stands floor-wide so
that reach lies over no neighbour.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit b872686 into main Oct 23, 2026
3 checks passed
@max-sixty
max-sixty deleted the panel-face-opt-in branch October 23, 2026 14:24
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