forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search Block: add button only with expandable input (WordPress#50487)
* Build docs. * Fix lint errors. * Fix php lint. * Remove duplicate call to view script. * List all dependencies in useEffect calls. * Add isSearchFieldHidden and buttonBehavior attributes to fixtures. * Allow input to expand on button focus and clean up CSS. * Add hidden class on initial block rendering. * Remove unneeded CSS. * Allow focus and blur to toggle search field, and simplify logic. * Handle keyboard navigation, event handling, and refactor. * Escape to close input, and do not allow focus to expand invisible element. * Add aria attributes to describe hidden / expanded states. * Fix lint warnings. * Fix php warnings. * Add and remove relevant ARIA attributes when input state changes. * Make strict comparison. * Clean up aria and take input out of taborder by default. * Fix label clicking behavior, remove unneeded event listeners. * Fix comparison bug. * Add and remove type and aria-label attributes to reflect form state. * Fix conditional on useEffect to show input on width change.
- Loading branch information
1 parent
b505b50
commit c0b3e90
Showing
8 changed files
with
215 additions
and
29 deletions.
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.