From ef08ba3a00b23266567b5fd88babd9e3eb9441ab Mon Sep 17 00:00:00 2001 From: Cyril Date: Wed, 10 Sep 2025 14:02:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20hide=20decorative=20icons?= =?UTF-8?q?,=20label=20menus,=20avoid=20name=20duplicates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit improves a11y by hiding decorative icons, labeling menus and deduping names Signed-off-by: Cyril --- CHANGELOG.md | 1 + .../app-impress/doc-member-create.spec.ts | 2 +- .../components/dropdown-menu/DropdownMenu.tsx | 8 +++++- .../docs/doc-header/components/DocToolBox.tsx | 4 +-- .../components/DocShareInvitation.tsx | 10 ++++++-- .../components/DocTreeItemActions.tsx | 2 ++ .../components/DocGridContentList.tsx | 1 + .../docs/docs-grid/components/DocsGrid.tsx | 2 +- .../docs-grid/components/DocsGridActions.tsx | 8 ++++-- .../docs-grid/components/DocsGridItem.tsx | 10 ++++++++ .../features/home/components/HomeContent.tsx | 6 ++++- .../language/components/LanguagePicker.tsx | 8 ++++-- .../apps/impress/src/i18n/translations.json | 25 +++++++++++++++++++ .../apps/impress/src/layouts/MainLayout.tsx | 3 +++ .../apps/impress/src/layouts/PageLayout.tsx | 10 ++++++-- 15 files changed, 86 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce550298..0b92afbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to - #1349 - #1271 - #1341 + - #1362 ### Changed diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-member-create.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-member-create.spec.ts index 7c02ab3f..4e902f65 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-member-create.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-member-create.spec.ts @@ -201,7 +201,7 @@ test.describe('Document create member', () => { await page.getByLabel('Reader').click(); const moreActions = userInvitation.getByRole('button', { - name: 'more_horiz', + name: 'Open invitation actions menu', }); await moreActions.click(); diff --git a/src/frontend/apps/impress/src/components/dropdown-menu/DropdownMenu.tsx b/src/frontend/apps/impress/src/components/dropdown-menu/DropdownMenu.tsx index df3049f7..de5d2d56 100644 --- a/src/frontend/apps/impress/src/components/dropdown-menu/DropdownMenu.tsx +++ b/src/frontend/apps/impress/src/components/dropdown-menu/DropdownMenu.tsx @@ -227,6 +227,7 @@ export const DropdownMenu = ({ $theme="greyscale" $variation={isDisabled ? '400' : '1000'} iconName={option.icon} + aria-hidden="true" /> )} @@ -235,7 +236,12 @@ export const DropdownMenu = ({ {(option.isSelected || selectedValues?.includes(option.value ?? '')) && ( - +