Repository navigation
Let the floating panel's own controls opt into its face - #3765
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # dist/kernel/kernel.json
# Conflicts: # dist/kernel/kernel.json
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]>
leaf-agent
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The floating panel gave its face to every bare
button,inputandtextareaunder 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-faceis 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)forbutton, 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-facejoins 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::afterinset 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 takingwhite-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.