Skip to content

Commit

Permalink
Navigation: Add an icon to the add submenu item option (#46884)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Dwyer <ben@escruffian.com>
  • Loading branch information
scruffian and Ben Dwyer authored Jan 4, 2023
1 parent f5785a3 commit ca477e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation/leaf-more-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { createBlock } from '@wordpress/blocks';
import { moreVertical } from '@wordpress/icons';
import { addSubmenu, moreVertical } from '@wordpress/icons';
import { DropdownMenu, MenuItem, MenuGroup } from '@wordpress/components';
import { useDispatch } from '@wordpress/data';
import { store as blockEditorStore, BlockTitle } from '@wordpress/block-editor';
Expand Down Expand Up @@ -38,6 +38,7 @@ export const LeafMoreMenu = ( props ) => {
{ ( { onClose } ) => (
<MenuGroup>
<MenuItem
icon={ addSubmenu }
onClick={ () => {
const newLink = createBlock(
'core/navigation-link'
Expand Down

1 comment on commit ca477e5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
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/3839869856
📝 Reported issues:

Please sign in to comment.