diff --git a/packages/block-editor/src/hooks/position.js b/packages/block-editor/src/hooks/position.js index a5d4a0cb43bf3..11fddf7289692 100644 --- a/packages/block-editor/src/hooks/position.js +++ b/packages/block-editor/src/hooks/position.js @@ -26,25 +26,22 @@ import { cleanEmptyObject, useStyleOverride } from './utils'; import { unlock } from '../lock-unlock'; import { store as blockEditorStore } from '../store'; -const { CustomSelectControl } = unlock( componentsPrivateApis ); +const { CustomSelectControlV2Legacy: CustomSelectControl } = unlock( + componentsPrivateApis +); const POSITION_SUPPORT_KEY = 'position'; -const OPTION_CLASSNAME = - 'block-editor-hooks__position-selection__select-control__option'; - const DEFAULT_OPTION = { key: 'default', value: '', name: __( 'Default' ), - className: OPTION_CLASSNAME, }; const STICKY_OPTION = { key: 'sticky', value: 'sticky', name: _x( 'Sticky', 'Name for the value of the CSS position property' ), - className: OPTION_CLASSNAME, __experimentalHint: __( 'The block will stick to the top of the window instead of scrolling.' ), @@ -54,7 +51,6 @@ const FIXED_OPTION = { key: 'fixed', value: 'fixed', name: _x( 'Fixed', 'Name for the value of the CSS position property' ), - className: OPTION_CLASSNAME, __experimentalHint: __( 'The block will not move when the page is scrolled.' ), @@ -283,13 +279,11 @@ export function PositionPanelPure( { options.length > 1 ? ( { onChangeType( selectedItem.value ); } } diff --git a/packages/block-editor/src/hooks/position.scss b/packages/block-editor/src/hooks/position.scss deleted file mode 100644 index b3bd6b1b9ef04..0000000000000 --- a/packages/block-editor/src/hooks/position.scss +++ /dev/null @@ -1,18 +0,0 @@ -.block-editor-hooks__position-selection__select-control { - .components-custom-select-control__hint { - display: none; - } -} - -.block-editor-hooks__position-selection__select-control__option { - &.has-hint { - grid-template-columns: auto 30px; - line-height: $default-line-height; - margin-bottom: 0; - } - - .components-custom-select-control__item-hint { - grid-row: 2; - text-align: left; - } -} diff --git a/packages/block-editor/src/style.scss b/packages/block-editor/src/style.scss index b2e753bea986e..e7e4b75d0a30f 100644 --- a/packages/block-editor/src/style.scss +++ b/packages/block-editor/src/style.scss @@ -52,7 +52,6 @@ @import "./hooks/color.scss"; @import "./hooks/dimensions.scss"; @import "./hooks/layout.scss"; -@import "./hooks/position.scss"; @import "./hooks/spacing.scss"; @import "./hooks/typography.scss";