diff --git a/packages/block-editor/src/components/list-view/drop-indicator.js b/packages/block-editor/src/components/list-view/drop-indicator.js index 04ce87b4a0c8d..0412c2876e576 100644 --- a/packages/block-editor/src/components/list-view/drop-indicator.js +++ b/packages/block-editor/src/components/list-view/drop-indicator.js @@ -1,3 +1,8 @@ +/** + * External dependencies + */ +import classnames from 'classnames'; + /** * WordPress dependencies */ @@ -7,6 +12,7 @@ import { useCallback, useMemo } from '@wordpress/element'; import { isRTL } from '@wordpress/i18n'; export default function ListViewDropIndicator( { + dropIndicatorClassName, listViewRef, blockDropTarget, } ) { @@ -243,7 +249,10 @@ export default function ListViewDropIndicator( { animate={ false } anchor={ popoverAnchor } focusOnMount={ false } - className="block-editor-list-view-drop-indicator" + className={ classnames( + 'block-editor-list-view-drop-indicator', + dropIndicatorClassName + ) } variant="unstyled" >
diff --git a/packages/block-editor/src/components/list-view/style.scss b/packages/block-editor/src/components/list-view/style.scss index 7afa7a1c98431..e74171f1c32c7 100644 --- a/packages/block-editor/src/components/list-view/style.scss +++ b/packages/block-editor/src/components/list-view/style.scss @@ -4,6 +4,10 @@ padding: 0; margin: 0; + * { + box-sizing: border-box; + } + // Move upwards when in modal. .components-modal__content & { margin: (-$grid-unit-15) (-$grid-unit-15 * 0.5) 0; @@ -431,8 +435,10 @@ $block-navigation-max-indent: 8; pointer-events: none; .block-editor-list-view-drop-indicator__line { + box-sizing: border-box; background: var(--wp-admin-theme-color); - height: 4px; + height: 6px; + border: 1px solid $white; border-radius: 4px; } } 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 6cc3138c9c2f7..c72689894c477 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 @@ -98,6 +98,7 @@ export default function NavigationMenuContent( { rootClientId } ) { <> { ! isLoading && (