-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move search into inserter tabs (#61108)
* Move search into inserter tabs * Make inserterSearch component * focus the search field using a useEffect * use request animation frame * add comment * remove unused code * change selector for search * use useRefEffect instead of the requestAnimationFrame * Only inserter on mount * keep the imperative ref and focus once the tabs are done * revert changes to the inserter tabs and leave the tabs contents memoized * reset order * remove unneeded change * reset order * show message if no blocks and no patterns available, do not auto focus tabs or search * fix test * fix firefox bug * auto focus the inserter when open so that we can tab into it * Remove unused searchRef * Pin hint to bottom of block tab panel so it doesn't flash * Remove unnecessary tab filtering * restore no results message * Focus first active tab * hide the inserter tabs on the widget editor --------- Co-authored-by: Ben Dwyer <[email protected]> Co-authored-by: Andrei Draganescu <[email protected]> Co-authored-by: jeryj <[email protected]> Co-authored-by: scruffian <[email protected]> Co-authored-by: draganescu <[email protected]> Co-authored-by: getdave <[email protected]>
- Loading branch information
1 parent
907c8b1
commit 59ed45e
Showing
12 changed files
with
161 additions
and
137 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.
59ed45e
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.
Flaky tests detected in 59ed45e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8912074447
📝 Reported issues:
/test/e2e/specs/editor/various/inserting-blocks.spec.js
/test/e2e/specs/editor/various/inserting-blocks.spec.js