Repository navigation
Give every key hint the one keycap face - #7449
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Nov 27, 2026
This was referenced Nov 28, 2026
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]>
This was referenced Nov 28, 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.
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:browserpasses, and stills of a margin card's reply box, the panel row and the Threads tab's preview show the keycap in each.