Skip to content

Give every key hint the one keycap face - #7449

Merged
max-sixty merged 1 commit into
mainfrom
unify-key-hints
Nov 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
unify-key-hints

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A text box's keys (in its placeholder, the panel row's press and the key before Send) and a preview's keys now wear the pale keycap every other key hint wears: the chip fill, the hairline and the keycap's ink. They had faces of their own, a quiet unfilled key in a box and a key outlined in the preview's ink, which set them apart from the keys list, menus, an option's digits, corner chips and Go-to codes. The maintainer chose one face for every key on the decision page, over keeping the three faces, over sparing a text box's keys, and over dropping the fill everywhere, which would need a ground of its own under keys that stand over content.

The change deletes the two rules that gave those keys their own faces (response.css, chrome.css) and records the decision in the keycap's header. A box's key before Send reads a little more like a second button than it did; in the dark scheme the fill barely shows on a card, so there the change is mostly brighter ink.

Tests: no test asserts a key's colours; pnpm run check:browser passes, and stills of a margin card's reply box, the panel row and the Threads tab's preview show the keycap in each.

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

A text box's keys (in its placeholder, the panel row's press and the key before Send) and a preview's keys now wear the pale keycap every other key hint wears: the chip fill, the hairline and the keycap's ink. They had faces of their own, a quiet unfilled key in a box and a key outlined in the preview's ink, which set them apart from the keys list, menus, an option's digits, corner chips and Go-to codes. The maintainer chose one face for every key on the decision page, over keeping the three faces, over sparing a text box's keys, and over dropping the fill everywhere, which would need a ground of its own under keys that stand over content.

The change deletes the two rules that gave those keys their own faces (response.css, chrome.css) and records the decision in the keycap's header. A box's key before Send reads a little more like a second button than it did; in the dark scheme the fill barely shows on a card, so there the change is mostly brighter ink.
@max-sixty
max-sixty merged commit 84e54b6 into main Nov 27, 2026
6 checks passed
@max-sixty
max-sixty deleted the unify-key-hints branch November 27, 2026 22:18
leaf-agent added a commit that referenced this pull request Nov 28, 2026
…#7504)

#7449 gave every key hint the one keycap face, which the maintainer
chose over sparing a text box's keys. As a result, the floating response
bar's placeholder key no longer inherits the placeholder's quiet ink.
`test_the_floating_response_bar_has_one_compact_face` still asserted
that the placeholder and its key share one colour, so it has failed on
every push to `main` since #7449 with `assert 2 == 1`.

This PR changes only the test, and nothing on screen changes. The test
now checks the face the maintainer chose:
- the placeholder keeps a text field's quiet placeholder ink, so an
empty hint doesn't read as prose. This is what #2384 added the assertion
to protect.
- its key wears the keycap ink of every other key badge.

At rest, both inks are compared with the floating panel's own field,
rendered beside the bar: its empty placeholder and the key badge of the
press its end offers. After a click into the field the panel's press
leaves, so the entered hint is checked against its own resting face. The
test injects nothing into the page.

The old assertion fails on `main`; the revised test passes, run locally
with `uv run pytest
tests/browser/test_render_anchors.py::test_the_floating_response_bar_has_one_compact_face
-n0`.

Closes #7498 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
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