Skip to content

Preview nothing on an option's pick mark, and leave out keys the hints draw on a control - #6137

Merged
max-sixty merged 2 commits into
mainfrom
preview-says-what-the-face-doesnt
Nov 16, 2026
Merged

max-sixty merged 2 commits into
mainfrom
preview-says-what-the-face-doesnt

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Tabbing onto an option card's pick mark showed a preview reading "choose one" with a 1 chip. It stood below the card's digit, across the right edge of the focus ring the card draws and over the next option's title, so the nightly ring sweep (test_each_sampled_focus_ring_is_shown_whole_in_its_surface) reported that edge unseen on every option card. The preview told the user nothing they could not already see: the mark's round or square corner says whether the group takes one option or several, the option's words stand beside it, and the digit drawn on the card says its key.

What changes for the user

  • An option's pick mark previews nothing, to a resting pointer, to Tab or to a held finger. Its accessible name still says "choose one" or "choose any" to a screen reader. This is the option Max chose on test_each_sampled_focus_ring_is_shown_whole_in_its_surface: focused options' rings lose their right edge since #5638 #5832, applied to every route, since the pointer's "choose one" named the mark's own shape.
  • A control's preview leaves out a key the command hints label that control with, a lent badge or a corner chip, as it already left out a key chip inside the control. drawnKeys (command-hints.js) reads those keys from the dispatcher's reading rather than from the painted badge, which lands a frame after the focus move that reaches the control. A chip the paint withholds for want of a free corner, or while a scroll settles, still counts, so its key goes unsaid there; recording what the paint drew instead would bring back the race on Tab.
  • A long press on a pick mark now presses it on release, as on any control with nothing to preview; before, the "choose one" preview took the hold.

Previews this removes or trims, found by tabbing through every example and the feature gallery before and after the change:

Control Before After
An option's pick mark (every page with lf-options choose) "choose one" (pointer), "choose one 1" (Tab) nothing
A playground's commit press: "Apply these settings", "Apply treatment", "Build query", "Create notification", "Use this timing" its label and its drawn 1 nothing
shadow-scale's "Save decision" "Save decision 1" nothing
Done in a multiple-choice group "Done: these picks are complete 6" "Done: these picks are complete"
A suggestion's margin Accept and Reject "Accept 1", "Reject 2" "Accept", "Reject"
A deck's forward press "Later →" "Later"

Previews that name an action the face doesn't spell out keep their key chips where no hint draws the key, such as Resolve's r, a playground's Reset ⌥0 and a code block's Hide notes n.

Cases I left alone, for your call

  • release-notes' before/after compare handle previews "Before and after", the start of its accessible name. I couldn't tell whether the shot's visible label already says those words to the user.
  • shadow-scale's layer rows preview their whole label ("1 Layer 1 0px x · 0px y · 1px blur"), which the row's ellipsis cuts by 8 to 12px. The rule that cut words preview whole keeps it, though the user sees nearly all of it.

Checks

  • A one-example ring sweep (the issue's temporary _tab_walk test, not committed) on alert-review and command-hub: 3 option-ring faults on each at 81904bdec5 (the files this touches are unchanged since), none with this change.
  • New test_a_preview_leaves_out_what_its_control_already_shows (Chromium and Firefox). It fails on the mark's pointer preview without the lf-options change, and on Done's chip without the preview change.
  • test_a_control_previews_its_word_and_every_key_that_presses_it (Resolve keeps "Resolve thread" and its r), test_a_preview_says_nothing_its_target_shows_whole, test_a_thread_s_words_in_a_widget_preview_it_unless_the_widget_draws_them, the panel field's Send preview, the add field's preview, and pnpm run check (runtime tests included).

Closes #5832

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

…s draw on a control

Tabbing onto an option card's pick mark showed a preview reading "choose one" with a
`1` chip. It stood below the digit, across the right edge of the focus ring the card
draws and over the next option's title, so the nightly ring sweep reported that edge
unseen on every option card (#5832). The preview told the user nothing they could not
already see: the mark's round or square corner says whether the group takes one option
or several, the option's words stand beside it, and the digit drawn on the card says
its key.

- The pick mark previews nothing, to a resting pointer, to Tab or to a held finger.
  Its accessible name still says "choose one" or "choose any" to a screen reader. The
  maintainer chose this over standing the preview clear of the card's ring, which put
  it over the next card's title in a stacked group, and over letting the sweep accept
  a preview that covers the ring it rides.
- A control's preview leaves out a key the command hints label that control with, a
  lent badge or a corner chip (`drawnKeys` in command-hints.js), as it already left
  out a key chip inside the control. It reads those keys from the dispatcher's
  reading rather than from the painted badge, which lands a frame after the focus
  move that reaches the control; a chip the paint withholds for want of a free corner
  still counts. A playground's commit press, such as "Apply these settings"
  with its drawn `1`, now previews nothing; Done, a suggestion's Accept and Reject and
  a deck's Back and Forward keep their names and drop the chip they already wear.

Closes #5832

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit 83b826c into main Nov 16, 2026
5 checks passed
@max-sixty
max-sixty deleted the preview-says-what-the-face-doesnt branch November 16, 2026 08:16
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.

test_each_sampled_focus_ring_is_shown_whole_in_its_surface: focused options' rings lose their right edge since #5638

2 participants