Skip to content

Commit

Permalink
Add id prop
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Mar 16, 2022
1 parent 5c39cdb commit dc573c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-editor/src/components/list-view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -69,6 +70,7 @@ function ListView(
__experimentalHideContainerBlockActions,
showNestedBlocks,
showBlockMovers,
id,
...props
},
ref
Expand Down Expand Up @@ -205,6 +207,7 @@ function ListView(
blockDropTarget={ blockDropTarget }
/>
<TreeGrid
id={ id }
className="block-editor-list-view-tree"
aria-label={ __( 'Block navigation structure' ) }
ref={ treeGridRef }
Expand Down

0 comments on commit dc573c2

Please sign in to comment.