Repository navigation
Run the panel field's box to the panel's edges, on the anchored box's ground, while it holds the caret - #5963
Merged
Merged
Conversation
Writing in the floating panel's field drew less attention than writing in an anchored comment box, though the two wear the same 14px face, the same 2px accent ring and the same paper ground, and the panel's field is the larger (494x32 against 375x32 on the triage board at 1440x900). What differed was the ring's place: the anchored box's ring is its outline, while the field's stood inside the panel's hairline, a second contour inside the first, so it read as part of a toolbar at the window's foot. While no view stands over the row, the panel holds only the leaf, the field and Send, so the caret now rings the panel's card instead, and the panel reads as one comment box with one contour. With a view open the field keeps its ring, since a ring round the panel would also mark the thread's messages. The card declares `--lf-wears-ring`, so `ringBox` finds it, and box-motion.js already draws a ring the card wears while the card moves. Behavior changed: `test_writing_reaches_the_field_however_the_panel_stands` now expects the panel's ring after `c` and the field's in an open thread, and the journey's ring sample for the panel field names the card's rule.
…the caret Writing in the floating panel drew less attention than writing in an anchored comment box. Both wear the 14px message face and the 2px accent ring, and the panel's field is the wider (498x36 outer ring against 379x36 on the triage board at 1440x900). The anchored box stood out by its ground, the card's `#fffefb` on the page's `#faf9f5`, and its inset, words 13px inside its ring; the panel's field kept the panel's own ground and stood its words 6px in. The field holding the caret now takes the card's ground inside its ring, and its words stand at the anchored box's inset (`--lf-thread-text-inset`) at rest too, so the caret arriving moves none of them. An error covering the field's words takes the field's ground and the same inset. This replaces the branch's first try, the ring round the whole panel, which the user turned down because it stood the leaf inside the box being written in. Behavior changed: `test_writing_reaches_the_field_however_the_panel_stands` also expects the field's ground to differ from the panel's while it holds the caret.
# Conflicts: # browser/styles/floating-panel.css
…aret The previous commit gave the panel's field an anchored comment box's face, but its ring stood 4px inside the panel's hairline: two contours where the anchored box has one. While the field holds the caret, its box now runs out to the panel's top, right and bottom edges, with the ring one band inside them and every corner at the panel's 12px. Its left side stays between the leaf and the words, so the leaf stays outside the box. The box's padding takes back the room its margins give, so the words and Send stand where they did. The ring moves from the editor (`.lf-compose-field`) to its slot (`.lf-fp-field`), whose box can reach the edges without moving Send, which stands in the editor's corner. The field names the row as its focus box (`--lf-focus-box`), so with a view open the row's line over it gives way to the ring, with no `:has()` reading focus. A stance's ✕ at the row's end keeps the box's right side where it was. The user chose this on 14 November 2026. Rejected: the ring round the field inside the panel; a ring round the panel's whole edge, closed round the leaf or open at its side; the panel parting into a box for the leaf and one for the words; and 6px corners, which against the panel's edge read square. The panel's hairline stays just outside the ring: covering it would put the ring outside the card's clip, which Safari can't widen (`overflow-clip-margin`). Behavior changed: `test_writing_reaches_the_field_however_the_panel_stands` expects the field's box at the panel's top, right and bottom edges, its ring inset.
leaf-agent
approved these changes
Nov 14, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 15, 2026
…e panel field's place from its words (#5993) Two follow-ups from #5989. - **A mark's preview covered the mark on the next line.** A preview picks a side clear of other controls by hit-testing the box it would draw, but another thread's passage mark is a range with no element of its own, so it was invisible to that test. The preview stood below its line, on top of the next mark, and a press aimed at that mark landed on the preview and only closed it. The range's owner now says where a mark lies under a point (`preview.js`, `declareRanges`; `anchor-paint.js` answers from `markHit`). A range's preview also now tests the other lines of its own paragraph. The preview now stands above the mark instead. A caret lookup per sampled point costs about 3 µs on `LONG_PAGE`, the same as `elementsFromPoint`. The new `test_a_mark_s_preview_stands_clear_of_the_mark_on_the_next_line` fails without either part, on both engines. - **`test_an_answer_the_user_waits_for_grows_the_view_up_to_its_cap`** is not a macOS-only failure, as #5989 said: #5963 broke it. While the panel field holds the caret, #5963 runs the field's slot out to the panel's edges, which moves the slot's top 6px without moving its words. The test read the slot's top. It now reads the words' top, which is what "the field stays where it is" protects. It passes with #5963's parent's styles and fails with #5963's. `pnpm run check` and `pnpm run test:runtime` pass, as do the preview placement, comment-mark and margin-entry tests and both tests that read the panel's growth probe. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Nov 15, 2026
Merged
leaf-agent
added a commit
that referenced
this pull request
Nov 15, 2026
…panel field's ring (#5997) #5963 moved the floating panel field's focus ring from `.lf-compose-field` to its slot, `.lf-fp-field`, which declares `--lf-wears-ring: 1`. `test_forced_colors_restore_a_real_outline_to_shadow_focused_fields` still read the outline on `.lf-compose-field`, which is now `none`, so it failed on `main` even though forced-colors mode still draws the ring (`solid 2px` on `.lf-fp-field`). This PR changes only the test. It now reads the outline of the box the runtime rings for the focused field, through the check API's `ringBox` (`focus.js`), so it follows the ring wherever a surface's styles put it without a second copy of that rule. It still checks the same behavior: in forced colors, the focused comment field has a real outline. The test passes on #5963's parent `06948a8d6`, fails on `03c0f70a6` (#5963) and on current `main` with `{'style': 'none', 'width': '3px'}`, and passes on this branch. All runs were local Chromium with `-n0`. It failed in push run [43644692490](https://github.com/max-sixty/leaf/actions/runs/43644692490), tracked in #3985. Other failures in that run have their own owners, so this PR doesn't close the report. Refs #3985 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
This was referenced Nov 16, 2026
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]>
max-sixty
added a commit
that referenced
this pull request
Nov 23, 2026
…focus on a press inside the panel field's ring (#6800) Two comment boxes draw their focus ring one band inside their edge: the floating panel's field (#5963) and a thread card's reply box (#6773). Things the box holds paint the field's paper to that edge: Send's box once the words run under Send's corner and the pointer rests on it (#4714), and an error about the box. Both are positioned at z-index 1, and a box's outline paints beneath its positioned children, so the ring broke: for Send's height on the panel field's right edge, or around the whole box under an error. Same in Chromium and Firefox, light and dark. Each ring now draws on the box's `::after`, laid over what the box holds, as surfaces.css says a focused box whose band something would cover does. Its place and corners don't change: the other panel and card states' stills differ from main only in antialiasing at the ring's corners. The panel field, holding the caret, runs to the panel's edges, so a 6px band of its slot's padding lies inside the ring but outside the words' box, and a press there took the focus to the panel in both engines. The slot now keeps the words' focus on a press of its own. Where to look: no stills state reached these cases, which is how they shipped. `plan-page-comment-send-shown`, `plan-page-comment-error` and `plan-card-reply-error` now do. The card's `::after` stands at `inset: -1px`, over the field's 1px border, where its outline stood; the thread-panel-overflow branch reworks that box's padding, so whichever lands second rebases. Max reported the broken ring from a Leaf page. Tests: `test_the_field_s_ring_stands_over_what_covers_its_words`, `test_a_card_reply_s_ring_stands_over_an_error_about_it` and `test_a_press_inside_the_field_s_ring_keeps_its_words_focused` each fail on main. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude <[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.
Writing in the floating panel drew less attention than writing in an anchored comment box. While the panel's field holds the caret, its box now runs out to the panel's top, right and bottom edges, with the ring one band inside them, the card's lighter ground (
#fffefbagainst the panel's#faf9f5) and 12px corners. The leaf stays outside the box. The words, now at the anchored box's 13px inset at rest too, and Send don't move.Where to look: the ring is on
.lf-fp-fieldrather than the editor, so Send, placed absolutely in the editor's corner, stays put. The field names.lf-fp-rowas its--lf-focus-box, so with a thread open the row's line gives way to the ring without a:has()reading focus. The panel's hairline stays just outside the ring: covering it would stand the ring outside the card'soverflow: clip, and Safari has nooverflow-clip-margin. A stance's ✕ at the row's end keeps the box's right side in.Max asked for this and chose the look on a Leaf page, over the ring round the field, a ring round the whole panel, the panel split in two, and 6px corners. Checked in Chromium and Firefox against
main: the words and Send land on the same pixels, and the box meets the card's edges. The focused panel tests and the ring and focus-rule guards pass;test_writing_reaches_the_field_however_the_panel_standsnow expects the box at the edges.