-
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
Search
block: stop using UnitControl
's deprecated unit
prop
#39514
Conversation
Size Change: -3 B (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
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
Search
blockwidth
controls to avoid using the deprecatedunit
prop from theUnitControl
component.Why?
The
unit
prop is marked as deprecated, the component's docs recommend passing the unit directly through thevalue
propHow?
Refactor the code to pass the unit directly through the
value
propTesting Instructions
%
px