Skip to content

test: show a press reached a tab panel by its click, not by focus - #6386

Merged
leaf-agent merged 1 commit into
mainfrom
fix/preview-panel-press
Nov 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/preview-panel-press

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6353 changed where a press on an open tab panel's contents lands. It now goes to the nearest other focusable box around the panel, or nowhere, instead of focusing the panel through its tabindex=0. test_a_preview_leaves_a_region_the_user_works_in_reachable[panel-*] still proved that the press reached the panel by expecting the panel to take focus. It failed on main in push run 44269587200, in Chromium and Firefox, with #region inactive.

The test checks that a margin preview doesn't cover a region the user works in. For the panel case it now checks that the click itself landed on #region. A preview covering that point would have received the click, so the check still fails in that case. The code and frame cases keep their focus checks, since #6353 leaves both alone: the code is a scroll stop Leaf lends, and the frame's field takes focus. Only the test changes, and #6353's behavior stays as its author intended.

Verification: both panel cases fail on main locally with the CI message. All six cases of the test pass on this branch.

Refs #3985 — automated triage

#6353 lands a press on a tab panel's contents where it would land
without the panel's tab stop, so the panel no longer takes focus. The
preview-clearance test now checks that the click landed on the panel,
which a covering preview would still intercept.

Refs #3985
@leaf-agent
leaf-agent merged commit 2b72ea6 into main Nov 18, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/preview-panel-press branch November 18, 2026 12:20
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.

1 participant