Repository navigation
Prevent scrollbar overlap and wrap annotation actions - #2217
Merged
Merged
Conversation
Read clearance in composed horizontal scrollers through the render gate, its width sweep, and passive view checks. Keep necessary native tracks usable while avoiding a native scrolling strip for annotation actions; hold new wrapped rows until the reader reveals updates. Add an explicit overflow-tabs gallery demo and regenerate the corpus.
leaf-agent
approved these changes
Oct 10, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 10, 2026
Two render-gate tests failed on [main's complete CI run](https://github.com/max-sixty/leaf/actions/runs/38039604066) because their horizontal-scroll fixtures left 4 px below the final words, while the scrollbar-clearance check introduced in #2217 requires 15 px. Give those fixtures 15 px of bottom clearance so the tests continue to isolate clipped content and scrolled-content reading without presenting a second, unrelated defect. Both named tests failed before this change on current `main` and passed afterward (`uv run pytest tests/test_render_gate.py::test_the_render_gate_reports_a_box_its_container_clips_away tests/test_render_gate.py::test_the_render_gate_reads_a_scrolled_container_from_its_content -q -n0`). This repairs those two failures; the run contains other failures with separate causes. Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
…4307) The scrollbar-clearance test read the last button's geometry immediately after keyboard focus arrived. The reported macOS run reached that assertion with the button focused and 15px clear below it, but the strip had only scrolled 127px and the button was still partly outside it. Wait for the keyboard destination to enter the strip before measuring clearance. The existing focus, horizontal scroll, clearance, probe findings and unchanged content-width assertions remain in place; a destination that never becomes visible still fails. This preserves #2217's keyboard reachability coverage without changing product layout. Validation: the focused test passes locally on Linux and in both platform jobs of dispatched CI run 40425144786 at this exact head. The normal PR checks passed. The dispatched full suite finished with failures in other tests; this diff only adds a wait inside the passing test and changes no shared fixture or product code. Landing follows the repository's CI-cause repair policy for terminal failures outside the claimed test. Closes #4232 — 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.
Horizontal overlay scrollbars could cover the final words or controls in an unmarked scrolling box. Annotation actions also acquired a native horizontal bar when enough controls accumulated.
Add a shared geometry reading for scrollbar clearance in ordinary, shadow, and slotted content. The render gate checks it at its fixed viewports and across the 360–1920px width sweep; passive view checks expose the same reading. Hidden bars and classic tracks with allocated space are handled separately. Annotation actions now wrap, and newly added rows still wait behind the existing update notice so foreign changes do not move the reader's controls.
Add an explicit overflowing tabs example to the product gallery and generated corpus, demonstrating the shipped edge-arrow navigation without a native bar.
Validated with focused browser regressions for generic/shadow/slotted/main scrollers, classic tracks, intermediate-width collisions, annotation action growth/reveal/resize/keyboard activation, and gallery arrow/keyboard navigation. Independent rendered review covered light/dark and touch layouts; corpus consistency, all 288 runtime tests, and the full lint pass succeed.