Skip to content

Prevent scrollbar overlap and wrap annotation actions - #2217

Merged
max-sixty merged 2 commits into
mainfrom
codex/scrollbar-clearance
Oct 10, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/scrollbar-clearance

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit a715513 into main Oct 10, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/scrollbar-clearance branch October 10, 2026 04:58
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]>
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.

2 participants