From 4f49ef0aafe7fa8a6af6a0a4f596dccb7a13fa38 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 25 May 2020 15:47:37 +1000 Subject: [PATCH 1/2] Block Navigator: Use default block appender Changes the Block Navigator to use the default block appender instead of the button block appender. --- .../src/components/block-navigation/appender.js | 4 ++-- .../src/components/block-navigation/style.scss | 17 ++++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/block-editor/src/components/block-navigation/appender.js b/packages/block-editor/src/components/block-navigation/appender.js index f31b8e793c8a29..6f3825e1fad206 100644 --- a/packages/block-editor/src/components/block-navigation/appender.js +++ b/packages/block-editor/src/components/block-navigation/appender.js @@ -9,8 +9,8 @@ import { __, sprintf } from '@wordpress/i18n'; * Internal dependencies */ import BlockNavigationLeaf from './leaf'; -import ButtonBlockAppender from '../button-block-appender'; import DescenderLines from './descender-lines'; +import Inserter from '../inserter'; export default function BlockNavigationAppender( { parentBlockClientId, @@ -48,7 +48,7 @@ export default function BlockNavigationAppender( { isLastRow={ position === rowCount } terminatedLevels={ terminatedLevels } /> - Date: Mon, 1 Jun 2020 14:59:59 +1000 Subject: [PATCH 2/2] Block Navigator: Pass TreeGridCell props to the inserter toggle --- .../block-editor/src/components/block-navigation/appender.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-navigation/appender.js b/packages/block-editor/src/components/block-navigation/appender.js index 6f3825e1fad206..8742fb31faf4cf 100644 --- a/packages/block-editor/src/components/block-navigation/appender.js +++ b/packages/block-editor/src/components/block-navigation/appender.js @@ -41,7 +41,7 @@ export default function BlockNavigationAppender( { className="block-editor-block-navigation-appender__cell" colSpan="3" > - { ( props ) => ( + { ( { ref, tabIndex, onFocus } ) => (