Skip to content

Use shared styling for ordinary action buttons - #287

Merged
max-sixty merged 4 commits into
mainfrom
codex/ordinary-buttons
Sep 5, 2026
Merged

max-sixty merged 4 commits into
mainfrom
codex/ordinary-buttons

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 4, 2026 •

Copy link
Copy Markdown
Owner

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

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread skills/leaf/assets/theme.css Resolved

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread skills/leaf/packages/default/theme.css Resolved
@max-sixty
max-sixty merged commit 7efd060 into main Sep 5, 2026
9 checks passed
@max-sixty
max-sixty deleted the codex/ordinary-buttons branch September 5, 2026 00:34
max-sixty added a commit that referenced this pull request Sep 5, 2026
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_
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