Skip to content

Commit

Permalink
Remove Block Inspector Button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Dwyer committed Dec 21, 2022
1 parent c05d7c5 commit 5c568d8
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 85 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ObserveTyping,
WritingFlow,
BlockEditorKeyboardShortcuts,
__unstableBlockSettingsMenuFirstItem,
__unstableEditorStyles as EditorStyles,
} from '@wordpress/block-editor';
import { uploadMedia } from '@wordpress/media-utils';
Expand All @@ -22,7 +21,6 @@ import { store as preferencesStore } from '@wordpress/preferences';
/**
* Internal dependencies
*/
import BlockInspectorButton from '../block-inspector-button';
import Header from '../header';
import useInserter from '../inserter/use-inserter';
import SidebarEditorProvider from './sidebar-editor-provider';
Expand Down Expand Up @@ -137,15 +135,6 @@ export default function SidebarBlockEditor( {
inspector.contentContainer[ 0 ]
) }
</SidebarEditorProvider>

<__unstableBlockSettingsMenuFirstItem>
{ ( { onClose } ) => (
<BlockInspectorButton
inspector={ inspector }
closeMenu={ onClose }
/>
) }
</__unstableBlockSettingsMenuFirstItem>
</>
);
}
1 change: 0 additions & 1 deletion packages/customize-widgets/src/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "./components/block-inspector-button/style.scss";
@import "./components/header/style.scss";
@import "./components/inserter/style.scss";
@import "./components/keyboard-shortcut-help-modal/style.scss";
Expand Down
7 changes: 0 additions & 7 deletions packages/edit-post/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
__unstableUseTypewriter as useTypewriter,
__unstableUseClipboardHandler as useClipboardHandler,
__unstableUseTypingObserver as useTypingObserver,
__unstableBlockSettingsMenuFirstItem,
__experimentalUseResizeCanvas as useResizeCanvas,
__unstableEditorStyles as EditorStyles,
useSetting,
Expand All @@ -43,7 +42,6 @@ import { store as coreStore } from '@wordpress/core-data';
/**
* Internal dependencies
*/
import BlockInspectorButton from './block-inspector-button';
import { store as editPostStore } from '../../store';

function MaybeIframe( {
Expand Down Expand Up @@ -400,11 +398,6 @@ export default function VisualEditor( { styles } ) {
</MaybeIframe>
</motion.div>
</motion.div>
<__unstableBlockSettingsMenuFirstItem>
{ ( { onClose } ) => (
<BlockInspectorButton onClick={ onClose } />
) }
</__unstableBlockSettingsMenuFirstItem>
</BlockTools>
);
}
7 changes: 0 additions & 7 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
BlockInspector,
BlockTools,
__unstableBlockToolbarLastItem,
__unstableBlockSettingsMenuFirstItem,
__unstableUseTypingObserver as useTypingObserver,
BlockEditorKeyboardShortcuts,
store as blockEditorStore,
Expand All @@ -43,7 +42,6 @@ import TemplatePartConverter from '../template-part-converter';
import NavigateToLink from '../navigate-to-link';
import { SidebarInspectorFill } from '../sidebar-edit-mode';
import { store as editSiteStore } from '../../store';
import BlockInspectorButton from './block-inspector-button';
import BackButton from './back-button';
import ResizableEditor from './resizable-editor';
import EditorCanvas from './editor-canvas';
Expand Down Expand Up @@ -251,11 +249,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
/>
</EditorCanvas>
</ResizableEditor>
<__unstableBlockSettingsMenuFirstItem>
{ ( { onClose } ) => (
<BlockInspectorButton onClick={ onClose } />
) }
</__unstableBlockSettingsMenuFirstItem>
<__unstableBlockToolbarLastItem>
<__unstableBlockNameContext.Consumer>
{ ( blockName ) =>
Expand Down

1 comment on commit 5c568d8

@github-actions
Copy link

@github-actions github-actions bot commented on 5c568d8 Dec 21, 2022

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/3750206133
📝 Reported issues:

Please sign in to comment.