Repository navigation
Use shared styling for ordinary action buttons - #287
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
One note on the shared face, inline. The rest reads well — the face reaches both trees, the disabled/hover treatment lands on all four call sites, and the ring floor still passes on the merged tree (test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus, run locally with --run-nightly: pressable is still painted, so nothing was left uncovered by the projection test's move to btn).
leaf-agent
left a comment
There was a problem hiding this comment.
One finding, inline: the ordinary-button face now paints a border and a --card fill around the options row's Add, whose box was sized back when it had neither, so the word crosses its own outline on the corpus.
The rest measures clean. Across all ninety-odd .lf-btn on corpus.html the face is identical — ink, fill, border, radius — and only padding varies, which is exactly the density the new guidance allows. The shadow-boundary question from the last pass is closed for the whole face, not just ink: a bare .lf-btn injected into lf-diff's tree and one injected into the document resolve the same font, box-sizing and color. And the new projection assertion is non-vacuous — reverting just the var(--ink)/--code-muted half of 703a2d1 fails it with [['rgb(28, 27, 24)', 'rgb(28, 27, 24)'], ['rgb(87, 96, 106)', 'rgb(200, 0, 100)'], ['rgb(87, 96, 106)', 'rgb(87, 96, 106)']], catching both the inherit leak on .lf-diff-next and the --code-muted divergence on .lf-diff-review.
Ordinary action controls used separate pill and border styles, including the diff toolbar and file headers. Route diff controls, call-diff toggles, host operations, preview diagnostics, and inline Add controls through the shared ordinary-button style, with 6px corners and common ink, hover, and disabled treatment. Carry that style into declared shadow trees while retaining compact placement where needed. The inline Add control grows to fit its label, with input space reserved alongside it. Right-margin Buttons and reaction/status chips keep their distinct forms. Update the control guidance and the existing keyboard-focus expectation for host operations. Validation: widget and projection browser suites, focused light/dark checks at 1200px and 1440px, keyboard/pointer review activation, a regression check for button ink across tinted document/shadow surfaces, and pre-commit checks. > _This was written by Codex on behalf of max-sixty_
Ordinary action controls used separate pill and border styles, including the diff toolbar and file headers. Route diff controls, call-diff toggles, host operations, preview diagnostics, and inline Add controls through the shared ordinary-button style, with 6px corners and common ink, hover, and disabled treatment. Carry that style into declared shadow trees while retaining compact placement where needed.
The inline Add control grows to fit its label, with input space reserved alongside it.
Right-margin Buttons and reaction/status chips keep their distinct forms. Update the control guidance and the existing keyboard-focus expectation for host operations.
Validation: widget and projection browser suites, focused light/dark checks at 1200px and 1440px, keyboard/pointer review activation, a regression check for button ink across tinted document/shadow surfaces, and pre-commit checks.