-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spacing: Fix reset of spacing sizes control #50455
Conversation
Size Change: +4 B (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
Flaky tests detected in f3b9ba9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4922327361
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well for me:
✅ If spacing preset values set resetting causing preset sliders to stay and show set hard left/undefined
✅ If custom sizes toggled on then resetting caused custom value controls to remain and be set to undefined
What?
Fixes regression in reset of spacing sizes control which resulted in incorrect switch to custom input view for the control.
Why?
Restores original behaviour, resetting the behaviour should leave the control in its default state.
How?
Add a check for a defined value when determining if a change in value should result in display of the custom input.
Testing Instructions
Screenshots or screencast
Screen.Recording.2023-05-09.at.2.15.02.pm.mp4
Screen.Recording.2023-05-09.at.2.13.27.pm.mp4