Repository navigation
Stop the panel's press face at the components the panel holds - #3230
Merged
Merged
Conversation
The floating panel's generic face for its own buttons was unlayered, while the document layers every component's face (`lf-base`). So the panel's face beat any component it held whatever their specificity, and each leak was answered by one more exclusion repeated through eight selectors: what Leaf's reader draws in a view's outlet, then the attachment shelf (#3214), then the comment box seated in the row (#3223). The face now stands where defaults that yield to components stand: in `lf-base`, as the marks sheet's indication default does, inside `@scope (.lf-floating-panel) to (.lf-fp-outlet, .lf-fp-response, .lf-composer-media)`. The scope's limit is the one place that names what the panel holds, so the face reaches none of their properties, including those a component leaves unset (the press reach, `white-space`). The layer lets the panel's own unlayered rules, and a shared face a panel control wears, outrank it, while it still outranks the chrome's control reset in `lf-reset` and the focus band at no weight. The per-component exclusions are gone; the field's exclusion from the press reach stays, since the field's presses are the panel's own, sized by its editor. Probed every visible control's computed face, at rest and hovered, and its focus ring, in the panel at rest, writing with an image, Threads, the leaf's menu, the seated comment box and a thread open in the panel, on main against this in Chromium, Firefox and under touch. The outlet, the shelf and the seated comment box are identical, and so are the panel's presses but two, which now take the face their own rules state: - The field's Send is the composers' accent arrow with its tinted disc on hover, which the user asked for on 15 October (#3073), rather than an ink arrow on the panel's hover fill. - A thread's Resolve icon is 14px, as `.lf-fp-settle .lf-action-icon` states, rather than 16px: #3214's `:not()` on the panel's icon rule had raised its weight over that rule. Tests: the Send test checks Send wears the accent; it fails on the previous sheet. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 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's generic face for its own buttons was unlayered, while the document layers every component's face (
lf-base). So the panel's face beat any component it held, whatever their specificity. Each leak got one more exclusion, repeated through eight selectors: first what Leaf's reader draws in a view's outlet, then the attachment shelf (#3214), then the comment box seated in the row (#3223).The boundary. The face now stands where defaults that yield to components stand: in
lf-base, as the marks sheet's indication default does, inside@scope (.lf-floating-panel) to (.lf-fp-outlet, .lf-fp-response, .lf-composer-media).white-space. A layer alone still let those through, so the limit is needed.lf-reset) and the focus band, which carries no weight. In the lowest layer instead, that band moved every panel focus ring from -2px to 3px.Checked. I diffed every visible control's computed face (at rest and hovered) and its focus ring, main against this branch, in Chromium, in Firefox and under touch. The states: the panel at rest, writing with an image attached, Threads, the leaf's menu, the seated comment box, and a thread open in the panel. The outlet, the shelf and the seated comment box are identical. So are the panel's own presses, except two that now take the face their own rules state:
.lf-fp-settle .lf-action-iconstates, rather than 16px. Give every attachment shelf the panel's picture with a corner × #3214's:not()on the panel's icon rule had given that rule more weight.Tests. The Send test now checks that Send wears the accent. It fails on the previous sheet. The focused panel, ring, chrome-scope, stylesheet-delivery and shelf tests pass.