From 54aaec60c715ed58401839d43690152b6f35146d Mon Sep 17 00:00:00 2001 From: Nik Tsekouras Date: Fri, 8 Nov 2024 05:59:09 +0200 Subject: [PATCH] Image: Add `aria-haspopup` prop write mode `more` tools menu items (#66815) Co-authored-by: ntsekouras Co-authored-by: talldan --- packages/block-library/src/image/image.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index 61baba2263989..b4d269f967822 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -135,6 +135,7 @@ function ContentOnlyControls( { setIsAltDialogOpen( true ); onClose(); } } + aria-haspopup="dialog" > { _x( 'Alternative text', @@ -146,6 +147,7 @@ function ContentOnlyControls( { setIsTitleDialogOpen( true ); onClose(); } } + aria-haspopup="dialog" > { __( 'Title text' ) }