diff --git a/packages/block-editor/src/components/inspector-controls-tabs/settings-tab-hint.js b/packages/block-editor/src/components/inspector-controls-tabs/settings-tab-hint.js deleted file mode 100644 index 4fc829817b4e0f..00000000000000 --- a/packages/block-editor/src/components/inspector-controls-tabs/settings-tab-hint.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * WordPress dependencies - */ -import { Button } from '@wordpress/components'; -import { useDispatch, useSelect } from '@wordpress/data'; -import { focus } from '@wordpress/dom'; -import { useRef } from '@wordpress/element'; -import { __ } from '@wordpress/i18n'; -import { close } from '@wordpress/icons'; -import { store as preferencesStore } from '@wordpress/preferences'; - -const PREFERENCE_NAME = 'isInspectorControlsTabsHintVisible'; - -export default function InspectorControlsTabsHint() { - const isInspectorControlsTabsHintVisible = useSelect( - ( select ) => - select( preferencesStore ).get( 'core', PREFERENCE_NAME ) ?? true, - [] - ); - - const ref = useRef(); - - const { set: setPreference } = useDispatch( preferencesStore ); - if ( ! isInspectorControlsTabsHintVisible ) { - return null; - } - - return ( -
-
- { __( - "Looking for other block settings? They've moved to the styles tab." - ) } -
-
- ); -} diff --git a/packages/block-editor/src/components/inspector-controls-tabs/settings-tab.js b/packages/block-editor/src/components/inspector-controls-tabs/settings-tab.js index bd462837442fe9..ec34035b754a91 100644 --- a/packages/block-editor/src/components/inspector-controls-tabs/settings-tab.js +++ b/packages/block-editor/src/components/inspector-controls-tabs/settings-tab.js @@ -4,7 +4,6 @@ import AdvancedControls from './advanced-controls-panel'; import PositionControls from './position-controls-panel'; import { default as InspectorControls } from '../inspector-controls'; -import SettingsTabHint from './settings-tab-hint'; const SettingsTab = ( { showAdvancedControls = false } ) => ( <> @@ -15,7 +14,6 @@ const SettingsTab = ( { showAdvancedControls = false } ) => ( ) } - ); diff --git a/packages/block-editor/src/components/inspector-controls-tabs/style.scss b/packages/block-editor/src/components/inspector-controls-tabs/style.scss index 70614f56dbcb3b..863ac3d9bed03a 100644 --- a/packages/block-editor/src/components/inspector-controls-tabs/style.scss +++ b/packages/block-editor/src/components/inspector-controls-tabs/style.scss @@ -5,24 +5,3 @@ } } } - -.block-editor-inspector-controls-tabs__hint { - align-items: flex-start; - background: $gray-100; - border-radius: $radius-block-ui; - color: $gray-900; - display: flex; - flex-direction: row; - margin: $grid-unit-20; - font-size: $default-font-size; -} - -.block-editor-inspector-controls-tabs__hint-content { - margin: $grid-unit-15 0 $grid-unit-15 $grid-unit-15; -} - -.block-editor-inspector-controls-tabs__hint-dismiss { - // The dismiss button has a lot of empty space through its padding. - // Apply margin to visually align the icon with the top of the text to its left. - margin: $grid-unit-05 $grid-unit-05 $grid-unit-05 0; -}