From a3466461ca196f1c1dff0790732d5224d88cfa34 Mon Sep 17 00:00:00 2001 From: Luis Felipe Zaguini Date: Tue, 10 Sep 2024 19:28:20 -0300 Subject: [PATCH] Only use placeholder if aria-label is not defined --- packages/block-editor/src/components/rich-text/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/rich-text/index.js b/packages/block-editor/src/components/rich-text/index.js index f6733f28f5baeb..d9083d21782060 100644 --- a/packages/block-editor/src/components/rich-text/index.js +++ b/packages/block-editor/src/components/rich-text/index.js @@ -408,8 +408,8 @@ export function RichTextWrapper( role="textbox" aria-multiline={ ! disableLineBreaks } aria-readonly={ shouldDisableEditing } + aria-label={ elementPlaceholder } { ...props } - aria-label={ elementPlaceholder || props[ 'aria-label' ] } { ...autocompleteProps } ref={ useMergeRefs( [ // Rich text ref must be first because its focus listener