Skip to content

fix: measure Design label attachment against the painted ring - #4969

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-4909
Nov 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-4909

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The Design label test still measured attachment to the target's box after #4732 deliberately moved the label outside the region's painted ring. It therefore failed on the intended 8px clearance rather than a detached label.

Measure against the bracket outline's visible top edge, using its computed width and offset. The existing scroll and panel checks remain. No page appearance changes.

The original assertion fails on main with an 8.33px gap. The corrected browser test passes, and restoring the pre-#4732 label offset makes it fail with a 5.67px overlap. Ruff check and format check pass.

Closes #4909 — automated triage

PR #4732 moved the label outward to clear the region ring. Preserve that interface and check the visible perimeter instead of the target box. The corrected browser test passes and fails when the pre-4732 label offset is restored.

Closes #4909
@max-sixty
max-sixty merged commit 4225588 into main Nov 1, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-4909 branch November 1, 2026 17:58
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.

Page legend leaves a larger gap than its reading-position check allows

2 participants