From 100d2953ed06c46da82b445220dabd08e4ffe286 Mon Sep 17 00:00:00 2001 From: Ovgodd Date: Fri, 4 Sep 2026 09:08:49 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BF=EF=B8=8F(frontend)=20announce=20the?= =?UTF-8?q?=20doc=20options=20button=20as=20a=20menu=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dropdown trigger was not exposed as a menu button to assistive tech. --- .../docs/doc-management/components/DocToolBox.tsx | 4 ++++ .../features/docs/doc-tree/components/DocTree.tsx | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/frontend/apps/impress/src/features/docs/doc-management/components/DocToolBox.tsx b/src/frontend/apps/impress/src/features/docs/doc-management/components/DocToolBox.tsx index cef8bed47..91cd7e0ff 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-management/components/DocToolBox.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-management/components/DocToolBox.tsx @@ -345,6 +345,10 @@ const DocToolBoxComponent = ({ aria-label={t('Open the document options: {{title}}', { title: doc.title || untitledDocument, })} + // `DropdownMenu` does not use React Aria's MenuTrigger, so nothing + // exposes the button as a menu button. Both attributes are ours. + aria-haspopup="menu" + aria-expanded={openDropdown} size="small" icon={