Skip to content

Commit

Permalink
hide the helper navigation block and its wrapping editor (#50662)
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu authored Jun 20, 2023
1 parent c783dc8 commit e59ccad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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>
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@
margin-right: auto;
display: block;
}

.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor {
display: none;
}

1 comment on commit e59ccad

@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 in e59ccad.
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/5323167156
📝 Reported issues:

Please sign in to comment.