-
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: add button only with expandable input #50487
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6baab10
Build docs.
jffng eccace1
Fix lint errors.
jffng b976118
Fix php lint.
jffng 73176c1
Remove duplicate call to view script.
jffng 0cb5ef2
List all dependencies in useEffect calls.
jffng 7f2869a
Add isSearchFieldHidden and buttonBehavior attributes to fixtures.
jffng 223c2d2
Allow input to expand on button focus and clean up CSS.
jffng 48b7ba3
Add hidden class on initial block rendering.
jffng cc7bf1b
Remove unneeded CSS.
jffng 05ba9a5
Allow focus and blur to toggle search field, and simplify logic.
jffng b028cbb
Handle keyboard navigation, event handling, and refactor.
jffng a769701
Escape to close input, and do not allow focus to expand invisible ele…
jffng 3a5c81a
Add aria attributes to describe hidden / expanded states.
jffng 9282f83
Fix lint warnings.
jffng 41946f5
Fix php warnings.
jffng 919117f
Add and remove relevant ARIA attributes when input state changes.
jffng 1860360
Make strict comparison.
jffng c3b84f5
Clean up aria and take input out of taborder by default.
jffng 7665720
Fix label clicking behavior, remove unneeded event listeners.
jffng 13e8dd7
Fix comparison bug.
jffng fe7ff74
Add and remove type and aria-label attributes to reflect form state.
jffng b77edab
Fix conditional on useEffect to show input on width change.
jffng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It would be nice to do this using the
WP_HTML_Tag_Processor
. There's an example of this in https://github.com/WordPress/gutenberg/pull/49212/files. Not necessary to get his merged, but a nice improvement.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.
Nice, happy to try that in a follow up.