-
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.
Enable open on click for Page List inside Navigation. (#34675)
* Add a Dropdown block for use in Navigation * display dropdowns below buttons in editor * Add open on click functionality. * Adjustments to click behaviour. * Fix submenu logic * Transform nav links to submenus * Change block name to Submenu and update classnames * Add submenu transform to navigation link. * Remove button default styling * Don't split at end. * Add block fixture. * Fix php lint errors. * Update submenu icon classname. * Use Submenu in Page List conversion to blocks. * Don't lose children when transforming to Submenu. * Fix link conversion in Page List block. * Add link to empty submenu and default navigation class. * Introduce hover/click toggle on Navigation. * Don't add link in submenu straightaway. * Open link control on parent element when hover is set. * Always show icons when opening on click. * Open submenus on click in the editor. * Fix button styles and change toggle label. * Update navigation fixture and fix php lint errors. * Fix php lint error. * Fix php lint error. * Try hiding submenu in block inserter. * Update menu items to blocks conversion. * Update menu items to blocks test. * Fix navigation link top level item status. * Update and add new e2e test for open on click. * Fix undo/redo trap. * Fix styling for nested submenus in the editor. * Remove obsolete lint ignore * Display block label in list view. * Fix dropdown z-index * Switch toggle position * Enable open on click for Page List inside Nav. * Add doc comments. * Update e2e snapshot. * Simulate open on click in the editor. * Fix toggle dropdown styles. * Target direct parent in toggle script. * Update effect when context changes. * Update e2e snapshot. * Fix button styles.
- Loading branch information
1 parent
a9da8a9
commit d065e74
Showing
12 changed files
with
149 additions
and
52 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
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
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