-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Search block: stop using UnitControl's deprecated unit prop
#39514
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
Conversation
|
Size Change: -3 B (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
andrewserong
left a comment
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.
Looks like this was a nice and simple one! This behaves the same as on trunk for me, the percentage based buttons work as expected, and dragging the width of the block switches to px units 👍
Yes! Couldn't same the same about Thank you! |
What?
Related to #39503 , this PR refactors the
Searchblockwidthcontrols to avoid using the deprecatedunitprop from theUnitControlcomponent.Why?
The
unitprop is marked as deprecated, the component's docs recommend passing the unit directly through thevaluepropHow?
Refactor the code to pass the unit directly through the
valuepropTesting Instructions
%px