From ad79082f3eb6573423e54daa20590793f0fac83c Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 31 May 2018 16:17:47 +0200 Subject: [PATCH] Use a list for the block types list. --- editor/components/inserter/item-list.js | 65 ++++++++++++++----------- editor/components/inserter/style.scss | 8 ++- 2 files changed, 43 insertions(+), 30 deletions(-) diff --git a/editor/components/inserter/item-list.js b/editor/components/inserter/item-list.js index b833d37ac428ef..3dcf4ea8bb3a03 100644 --- a/editor/components/inserter/item-list.js +++ b/editor/components/inserter/item-list.js @@ -19,40 +19,47 @@ class ItemList extends Component { const { items, onSelect, onHover } = this.props; return ( -
+ /* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + /* eslint-disable jsx-a11y/no-redundant-roles */ +
+ + /* eslint-enable jsx-a11y/no-redundant-roles */ ); } } diff --git a/editor/components/inserter/style.scss b/editor/components/inserter/style.scss index d9f604c2a3e57b..bf097e2c71bfed 100644 --- a/editor/components/inserter/style.scss +++ b/editor/components/inserter/style.scss @@ -93,8 +93,14 @@ $block-inserter-search-height: 38px; } } -.editor-inserter__item-list { +.editor-inserter__list { + list-style: none; margin: 0 -8px; + padding: 0; +} + +.editor-inserter__list-item { + display: inline; } .editor-inserter__item {