From e59ccad232ccd10304840d288ecb407bb20d8b11 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu <me@andreidraganescu.info> Date: Tue, 20 Jun 2023 16:26:29 +0300 Subject: [PATCH] hide the helper navigation block and its wrapping editor (#50662) --- .../navigation-menu-content.js | 5 ++--- .../sidebar-navigation-screen-navigation-menus/style.scss | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js b/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js index dd9256b3a5c875..35a06b53786ec7 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js @@ -9,7 +9,6 @@ import { } from '@wordpress/block-editor'; import { useDispatch, useSelect } from '@wordpress/data'; import { createBlock } from '@wordpress/blocks'; -import { VisuallyHidden } from '@wordpress/components'; import { useCallback } from '@wordpress/element'; import { store as coreStore } from '@wordpress/core-data'; @@ -106,11 +105,11 @@ export default function NavigationMenuContent( { rootClientId } ) { showAppender={ false } /> ) } - <VisuallyHidden aria-hidden="true"> + <div className="edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"> <BlockTools> <BlockList /> </BlockTools> - </VisuallyHidden> + </div> </> ); } diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/style.scss b/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/style.scss index 6ecf61df710a47..a022b7824cb4a7 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/style.scss +++ b/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/style.scss @@ -99,3 +99,7 @@ margin-right: auto; display: block; } + +.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor { + display: none; +}