Repository navigation
Keep focus rings clear of the neighbours that paint after them - #3111
Merged
Merged
Conversation
A focused playground choice's ring stood 4px outside its face (2px offset, 2px width), but the choices' gap was --sp-1: 4px in the default density and 3px in working density. Grid and flex items paint whole in tree order, so the next face painted its 1px border over the ring's outer pixel. The choices now space themselves by --focus-ring-room and draw the ring a pixel inside it. A survey of every example's Tab stops in both densities found the same cause twice more: the trace viewer's image tools (the shared button ring, 2px off, in a 3px working-density gap) now take --focus-ring-room as their gap, and a focused tab panel, whose outward ring ran under the strip's fill, now wears its ring inside like other panes. The ring reading counted only a neighbour's fill as covering a ring, so a face drawn by its border alone covered the ring unseen. It now also counts a border the sample lies on, and the ring cases sample a working-density playground choice and a tab panel; both report the old faults on the base. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 17, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 17, 2026
Deleting the auxiliary surfaces made chrome.js's foreground dialog the chrome's home but dropped the envelope rule that sized it to nothing, so every page drew the browser's dialog face: a 34px white square with a black border where the document ends, just above the floating panel. It covered the bottom of a tall lf-ask's ring in notification-playground, which the focus-ring check main added in #3111 reports. The rule comes back as `.lf-foreground`, minus the pointer-events and anchor-scope only the drawers needed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Nov 16, 2026
…where #6110 and #5963 moved them (#6193) The focus-ring sweep held two samples that later product changes had made stale. This PR updates both to where those changes deliberately moved the ring. - **notification-playground**: `lf-playground input[type=radio]` now resolves first to the Banner format card. #6110 made a candidate card wear its radio's ring, because the label's own ring "ran through its words" (its description). The sample still expected the `.lf-choice` label's ring. It now takes the rail's Tone radio (`#tone`), the dense choice it was added for in #3111, where the label still wears the ring. A second sample checks that the format card (`#format`) wears the `lf-playground-choice` ring. - **triage-board's panel field**: the sweep reaches this stop once the first one passes. #5963 moved the field's ring from the editor to the field's slot `.lf-fp-field`, so Send stays put. The sample expected `.lf-fp-field .lf-compose-field` and now expects `[data-lf-control-focus-visible] > .lf-fp-field`. No product code changes. Locally on Linux, before the change the test failed at notification-playground's radio with the message in #6182. With the change, every sample passes, both new expectations included. The test still fails on eight ring faults on `lf-ask` sections and a trace mark. These were hidden behind the stale samples and are a separate cause, filed as #6192. Closes #6182 — automated triage Co-authored-by: leaf-agent <[email protected]>
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 focused playground choice's ring sat beneath the next choice's outline. The ring reaches 4px outside its face (2px offset, 2px width), but the choices were spaced by
--sp-1, which is 3px in working density. Grid and flex items paint whole in document order, so the next face drew its 1px border over the ring's outer pixel. The choices now space themselves by--focus-ring-roomand draw the ring a pixel inside it.Focusing every control in every example, in both densities, found the same cause twice more:
--focus-ring-roomas their gap;The ring check (
focus_rings.js) counted only a neighbour's fill as covering a ring, so a face drawn by its border alone covered it unseen. It now also counts a border the sample lies on, andRING_CASESsamples a working-density playground choice and a tab panel. Run on its own, the check reports both old faults onmainand none on this branch.