Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: update aria-label for RichText
  • Loading branch information
yogeshbhutkar committed Jun 2, 2025
commit 4dc9cf04b2f7c8c65767527630c90c674dc58cbc
10 changes: 3 additions & 7 deletions packages/block-library/src/details/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import {
TextControl,
ToggleControl,
VisuallyHidden,
__experimentalToolsPanel as ToolsPanel,
__experimentalToolsPanelItem as ToolsPanelItem,
privateApis as componentsPrivateApis,
Expand Down Expand Up @@ -130,14 +129,11 @@ function DetailsEdit( { attributes, setAttributes, clientId } ) {
onKeyDown={ withIgnoreIMEEvents( handleSummaryKeyDown ) }
onKeyUp={ handleSummaryKeyUp }
>
<VisuallyHidden id={ instanceId }>
{ __(
'Press Enter to expand or collapse the details.'
) }
</VisuallyHidden>
<RichText
identifier="summary"
aria-label={ __( 'Write summary' ) }
aria-label={ __(
'Write summary. Press Enter to expand or collapse the details.'
) }
aria-describedby={ instanceId }
placeholder={ placeholder || __( 'Write summary…' ) }
withoutInteractiveFormatting
Expand Down