Skip to content

fix: reserve the tally's and dial's pre-upgrade width from the library's button padding - #5689

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-5680
Nov 7, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-5680

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5340 moved Leaf's word buttons onto Web Awesome's side padding, --wa-form-control-padding-inline (1em, so 12.5–14px), replacing a fixed 10px. Two widgets reserve their room before they upgrade, and both reservations still added a hard-coded 10px per side: lf-tally's invisible "Next on me" placeholder, and the inset on lf-dial's measure of its three radio labels. So each widget got wider once it upgraded (the dial by 24px in a column page), and the widget-quality keeps-first-box check failed. Both reservations now use the token. The token is resolved in the same font as the control each one stands in for, so the reserved box follows the library's padding and doesn't hard-code a second copy of it.

The upgraded widgets look exactly as they did. Only the invisible box before upgrade changes: it is now as wide as the control that replaces it, so the widget no longer moves the content that follows it. For that reason this PR has no before/after screenshots.

tests/journeys/test_widget_quality.py::test_bundled_widgets_meet_the_widget_quality_checks[default] and [detail] (run with --run-nightly) fail on main 76c9c08fd with the messages in #5680 and pass with this change. known_widget_findings.py is unchanged. No other :not(:defined) reservation in packages/ or browser/styles hard-codes the button padding.

Closes #5680 — automated triage

…y's button padding

#5340 moved Leaf's word buttons to Web Awesome's inline padding,
`--wa-form-control-padding-inline` (1em), from 10px. The room lf-tally's
Next on me and lf-dial's three radios reserve before upgrade still added
10px per side, so both widgets widened once presented and failed the
widget-quality keeps-first-box check. Both reservations now read the
token, resolved in the same font as the control they stand in for, so
the box matches whatever padding the library sets.

Closes #5680
@leaf-agent
leaf-agent merged commit 754d6e3 into main Nov 7, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5680 branch November 7, 2026 23:28
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.

test_bundled_widgets_meet_the_widget_quality_checks[default] and [detail] fail on main since #5340: the tally and dial widen once upgraded

1 participant