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
Search block: Fix width input field #53952
Conversation
Size Change: +23 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
Flaky tests detected in f3b6753. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5977785501
|
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.
Thank you, @walbo!
What?
In the search block: Change the input width
min
value to a number to fix a bug and add amax
value if the unit it %.Why?
The input width field isn't working as it should when the
min
value is a string that includes the unit. Arrow-up, arrow-down and the drag behavor all resets the input field to0
.How?
Change the
min
prop to be a number. Have also optimized the min/max value based on the unit.Testing Instructions
Screenshots or screencast
Before
Skjermopptak.2023-08-25.kl.17.36.01.mov
After
Skjermopptak.2023-08-25.kl.17.34.56.mov