-
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.
Implement "Add block" UI for Nav block Link UI (#57756)
* Export QuickInserter from block editor package * Add prop for hiding search input on QuickInserter * Set up new “Add block” UI using QuickInserter * Remove auto-inserted blocks if no URL is created * Hack: fix Popover onClose not firing * remove useless button * Hack: fix Popover onClose not firing * remove useless button * Add some design for the add block button * update back button * Add aria-haspopover * Add dialog role and aria label and description * Label the Link Control * Manage focus when transitioning to Add block state * Return focus to “Add block” button when going back * Remove auto-inserted link block when selecting a new block * Make QuickInserter a private API * Add mousetrap to popover * Remove aria-label from Back button * always direct insert * move the back button over a bit * use the onReplace function instead of replaceBlock * remove comment * hide the bottom controls when creating a page * code quality * changed test to use the new feature --------- Co-authored-by: scruffian <ben@scruffian.com> Co-authored-by: Jerry Jones <jones.jeremydavid@gmail.com> Co-authored-by: MaggieCabrera <maggie.cabrera@automattic.com>
- Loading branch information
1 parent
df873e1
commit 84caf90
Showing
9 changed files
with
263 additions
and
161 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
Oops, something went wrong.