From 353b384df5b00885850cebbb10467514c2b7c560 Mon Sep 17 00:00:00 2001 From: Zebulan Stanphill Date: Thu, 28 Nov 2019 03:16:28 -0600 Subject: [PATCH] Remove link to parent from block hover breadcrumb. (#18795) --- .../src/components/block-list/breadcrumb.js | 13 +------------ .../src/components/block-list/style.scss | 10 ---------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/packages/block-editor/src/components/block-list/breadcrumb.js b/packages/block-editor/src/components/block-list/breadcrumb.js index b167149778843..25a359c19c1d1 100644 --- a/packages/block-editor/src/components/block-list/breadcrumb.js +++ b/packages/block-editor/src/components/block-list/breadcrumb.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { Toolbar, Button } from '@wordpress/components'; -import { useSelect, useDispatch } from '@wordpress/data'; +import { useDispatch } from '@wordpress/data'; import { forwardRef } from '@wordpress/element'; /** @@ -20,21 +20,10 @@ import BlockTitle from '../block-title'; */ const BlockBreadcrumb = forwardRef( ( { clientId }, ref ) => { const { setNavigationMode } = useDispatch( 'core/block-editor' ); - const { rootClientId } = useSelect( ( select ) => { - return { - rootClientId: select( 'core/block-editor' ).getBlockRootClientId( clientId ), - }; - } ); return (
- { rootClientId && ( - <> - - - - ) } diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index e40b7676be37c..8f330a95d458b 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -1097,16 +1097,6 @@ } } -.block-editor-block-list__descendant-arrow::before { - content: "→"; - display: inline-block; - padding: 0 4px; - - .rtl & { - content: "←"; - } -} - .block-editor-block-list__block { @include break-small { // Increase the hover and selection area around blocks.