Skip to content

Commit d4d2699

Browse files
committed
fix: remove the usage of aria-describedby
1 parent 532e0b6 commit d4d2699

File tree

1 file changed

+0
-3
lines changed
  • packages/block-library/src/details

1 file changed

+0
-3
lines changed

packages/block-library/src/details/edit.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
import { __ } from '@wordpress/i18n';
1919
import { useState } from '@wordpress/element';
2020
import { useSelect } from '@wordpress/data';
21-
import { useInstanceId } from '@wordpress/compose';
2221

2322
/**
2423
* Internal dependencies
@@ -40,7 +39,6 @@ const TEMPLATE = [
4039
function DetailsEdit( { attributes, setAttributes, clientId } ) {
4140
const { name, showContent, summary, allowedBlocks, placeholder } =
4241
attributes;
43-
const instanceId = useInstanceId( DetailsEdit, 'details-edit-desc' );
4442
const blockProps = useBlockProps();
4543
const innerBlocksProps = useInnerBlocksProps( blockProps, {
4644
template: TEMPLATE,
@@ -134,7 +132,6 @@ function DetailsEdit( { attributes, setAttributes, clientId } ) {
134132
aria-label={ __(
135133
'Write summary. Press Enter to expand or collapse the details.'
136134
) }
137-
aria-describedby={ instanceId }
138135
placeholder={ placeholder || __( 'Write summary…' ) }
139136
withoutInteractiveFormatting
140137
value={ summary }

0 commit comments

Comments
 (0)