Repository navigation
fix: reserve the tally's and dial's pre-upgrade width from the library's button padding - #5689
Merged
Merged
Conversation
…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
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.
#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-qualitykeeps-first-boxcheck 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 main76c9c08fdwith the messages in #5680 and pass with this change.known_widget_findings.pyis unchanged. No other:not(:defined)reservation inpackages/orbrowser/styleshard-codes the button padding.Closes #5680 — automated triage