-
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
Simplify frontend script for button-only search #32387
Simplify frontend script for button-only search #32387
Conversation
@@ -68,6 +68,12 @@ | |||
min-width: 0 !important; | |||
} | |||
|
|||
.wp-block-search__input { | |||
transition-property: all; |
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.
This needs to be all
and not flex-basis
because using flex-basis
some versions of Safari don't properly apply the transition.
Size Change: -329 B (0%) Total Size: 1.03 MB
ℹ️ View Unchanged
|
This all looks great, except for one thing -- the width does not pass through to the front end, it will always be 100% width. I think it will need to pass the width and widthUnit attributes through to the front end to apply inline in this case. |
I fixed it, just needed the inline style applied in button only mode. Will merge this back into the parent PR. Thanks for your help! |
Description
Simplifies the frontend script for button-only search.
This is not a PR against
trunk
, it is an addition to #31719How has this been tested?
Tested editor & frontend behavior
Types of changes
Most of the JS was there to make transitions work. Migrated some of that behavior to CSS.
Checklist:
*.native.js
files for terms that need renaming or removal).