Skip to content

Stop the panel's press face at the components the panel holds - #3230

Merged
max-sixty merged 2 commits into
mainfrom
agent-afda6ba3a9c673bc5
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-afda6ba3a9c673bc5

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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).

  • The scope's limit is the one place that names what the panel holds. The face reaches none of those components' properties, including ones a component leaves unset, such as the press reach and white-space. A layer alone still let those through, so the limit is needed.
  • The layer lets the panel's own unlayered rules outrank the face, and so does a shared face a panel control wears. The face still outranks the chrome's control reset (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.
  • What's removed: the per-component exclusions. The field's exclusion from the press reach stays, because the field's presses are the panel's own, sized by its editor.

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:

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.

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

max-sixty and others added 2 commits October 19, 2026 20:24
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]>
@max-sixty
max-sixty merged commit 40c29c3 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-afda6ba3a9c673bc5 branch October 20, 2026 03:39
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