Repository navigation
Components: Add fallback units for input slider in BoxControl - #70288
Conversation
1a8b3b2 to
b7170ce
Compare
🤖 PR meta 🤖🎉 PropsUnlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @giannis-koulouris-bb. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the |
ciampo
left a comment
There was a problem hiding this comment.
We'll need to add changelog entry
ciampo
left a comment
There was a problem hiding this comment.
LGTM 🚀
Needs a rebase before merging.
What?
Closes #61410
Stops the
BoxControlslider from saving numbers without a unit.Why?
When a side had no unit yet, moving the slider saved values like
5instead of5px. This happened on first use, after a reset, and when switching from a preset to a custom value.How?
unitswhen neither the value nor the selected unit provides one.em-only list, reset, resetting to mixed values, an empty axis, and switching from a preset.Screenshots or screencast
Before
Screen.Recording.2025-06-02.at.2.40.05.PM.mov
After
Screen.Recording.2025-06-02.at.2.40.05.PM.mov