From 0da63c66e5ae66b2fe9ae01dde100cbdd3e9463d Mon Sep 17 00:00:00 2001 From: Haz Date: Tue, 16 Jun 2020 16:14:23 -0300 Subject: [PATCH 1/5] Implement roving tabindex on grouped blocks toolbars --- .../components/block-parent-selector/index.js | 4 +- .../block-parent-selector/style.scss | 9 -- .../various/toolbar-roving-tabindex.test.js | 83 +++++++++++++++++++ 3 files changed, 85 insertions(+), 11 deletions(-) create mode 100644 packages/e2e-tests/specs/editor/various/toolbar-roving-tabindex.test.js diff --git a/packages/block-editor/src/components/block-parent-selector/index.js b/packages/block-editor/src/components/block-parent-selector/index.js index 7fb79764bbe477..c6b7a458ea3887 100644 --- a/packages/block-editor/src/components/block-parent-selector/index.js +++ b/packages/block-editor/src/components/block-parent-selector/index.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { getBlockType } from '@wordpress/blocks'; -import { Button } from '@wordpress/components'; +import { ToolbarButton } from '@wordpress/components'; import { useSelect, useDispatch } from '@wordpress/data'; import { __, sprintf } from '@wordpress/i18n'; @@ -41,7 +41,7 @@ export default function BlockParentSelector() { className="block-editor-block-parent-selector" key={ firstParentClientId } > -