From d9be0a6281d3f9e55a3430a29290ae875cf8a419 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 16 Mar 2022 09:48:58 +0000 Subject: [PATCH] Add id prop --- packages/block-editor/src/components/list-view/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-editor/src/components/list-view/index.js b/packages/block-editor/src/components/list-view/index.js index 6ea58ca500443..351ed00ed5e7c 100644 --- a/packages/block-editor/src/components/list-view/index.js +++ b/packages/block-editor/src/components/list-view/index.js @@ -59,6 +59,7 @@ export const BLOCK_LIST_ITEM_HEIGHT = 36; * @param {boolean} props.__experimentalFeatures Flag to enable experimental features. * @param {boolean} props.__experimentalPersistentListViewFeatures Flag to enable features for the Persistent List View experiment. * @param {boolean} props.__experimentalHideContainerBlockActions Flag to hide actions of top level blocks (like core/widget-area) + * @param {string} props.id Unique identifier for the root list element (primarily for a11y purposes). * @param {Object} ref Forwarded ref */ function ListView( @@ -69,6 +70,7 @@ function ListView( __experimentalHideContainerBlockActions, showNestedBlocks, showBlockMovers, + id, ...props }, ref @@ -205,6 +207,7 @@ function ListView( blockDropTarget={ blockDropTarget } />