From de31820f660e573918ffb502a3019fe0a8b01225 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Wed, 7 Apr 2021 12:49:50 +1000 Subject: [PATCH] Change markup on front end --- packages/block-library/src/navigation/edit.js | 45 ++++++++----------- .../block-library/src/navigation/index.php | 11 ++++- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/packages/block-library/src/navigation/edit.js b/packages/block-library/src/navigation/edit.js index 9edc6046f9dee..034e0ba4255d0 100644 --- a/packages/block-library/src/navigation/edit.js +++ b/packages/block-library/src/navigation/edit.js @@ -72,29 +72,24 @@ function Navigation( { clientId ); - const innerBlocksProps = useInnerBlocksProps( - { - className: 'wp-block-navigation__container', - }, - { - allowedBlocks: ALLOWED_BLOCKS, - orientation: attributes.orientation || 'horizontal', - renderAppender: - ( isImmediateParentOfSelectedBlock && - ! selectedBlockHasDescendants ) || - isSelected - ? InnerBlocks.DefaultAppender - : false, - __experimentalAppenderTagName: 'li', - __experimentalCaptureToolbars: true, - // Template lock set to false here so that the Nav - // Block on the experimental menus screen does not - // inherit templateLock={ 'all' }. - templateLock: false, - __experimentalLayout: LAYOUT, - placeholder: , - } - ); + const innerBlocksProps = useInnerBlocksProps( blockProps, { + allowedBlocks: ALLOWED_BLOCKS, + orientation: attributes.orientation || 'horizontal', + renderAppender: + ( isImmediateParentOfSelectedBlock && + ! selectedBlockHasDescendants ) || + isSelected + ? InnerBlocks.DefaultAppender + : false, + __experimentalAppenderTagName: 'li', + __experimentalCaptureToolbars: true, + // Template lock set to false here so that the Nav + // Block on the experimental menus screen does not + // inherit templateLock={ 'all' }. + templateLock: false, + __experimentalLayout: LAYOUT, + placeholder: , + } ); if ( isPlaceholderShown ) { return ( @@ -145,9 +140,7 @@ function Navigation( { ) } - +