Skip to content

Commit

Permalink
Only use placeholder if aria-label is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
zaguiini committed Sep 10, 2024
1 parent b4100c0 commit b4401a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ export function RichTextWrapper(
role="textbox"
aria-multiline={ ! disableLineBreaks }
aria-readonly={ shouldDisableEditing }
{ ...props }
aria-label={ elementPlaceholder || props[ 'aria-label' ] }
aria-label={ elementPlaceholder }
{ ...autocompleteProps }
ref={ useMergeRefs( [
// Rich text ref must be first because its focus listener
Expand Down

0 comments on commit b4401a7

Please sign in to comment.