From ac51878186f55835beaf27dad99d082a6bb77cd4 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Mon, 12 May 2025 18:10:00 +0200 Subject: [PATCH] Improve ARIA labels for buttons and links on the Account setting page (#25499) * Improve announced button and link labels for screen reader users * Improve labels for integration widgets and update test * Make integration widget IDs to be required GitOrigin-RevId: 1e0124ef63a91fb63dffd79881c60794bccb9d27 --- server-ce/test/git-bridge.spec.ts | 4 +-- .../web/frontend/extracted-translations.json | 3 ++ .../components/account-info-section.tsx | 3 +- .../settings/components/emails-section.tsx | 1 + .../components/linking/integration-widget.tsx | 21 ++++++++++++-- .../components/linking/sso-widget.tsx | 29 ++++++++++++++++--- services/web/locales/en.json | 3 ++ .../components/account-info-section.test.tsx | 20 ++++++------- .../emails-section-add-new-email.test.tsx | 29 ++++++++++++------- .../components/emails/emails-section.test.tsx | 1 + .../components/linking-section.test.tsx | 9 ++++-- .../linking/integration-widget.test.tsx | 3 +- .../components/linking/sso-widget.test.tsx | 20 ++++++------- 13 files changed, 102 insertions(+), 44 deletions(-) diff --git a/server-ce/test/git-bridge.spec.ts b/server-ce/test/git-bridge.spec.ts index 071091bdfd..67a09b3409 100644 --- a/server-ce/test/git-bridge.spec.ts +++ b/server-ce/test/git-bridge.spec.ts @@ -93,7 +93,7 @@ describe('git-bridge', function () { cy.get('code').contains(`git clone ${gitURL(id.toString())}`) }) cy.findByRole('button', { - name: 'Generate token', + name: /generate token/i, }).click() cy.get('code').contains(/olp_[a-zA-Z0-9]{16}/) }) @@ -196,7 +196,7 @@ describe('git-bridge', function () { cy.get('code').contains(`git clone ${gitURL(projectId.toString())}`) }) cy.findByRole('button', { - name: 'Generate token', + name: /generate token/i, }).click() cy.get('code') .contains(/olp_[a-zA-Z0-9]{16}/) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 207da71688..df46529ffe 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -895,10 +895,12 @@ "layout_options": "", "layout_processing": "", "learn_more": "", + "learn_more_about": "", "learn_more_about_account": "", "learn_more_about_compile_timeouts": "", "learn_more_about_link_sharing": "", "learn_more_about_managed_users": "", + "learn_more_about_managing_email": "", "learn_more_about_other_causes_of_compile_timeouts": "", "leave": "", "leave_any_group_subscriptions": "", @@ -1144,6 +1146,7 @@ "other_causes_of_compile_timeouts": "", "other_logs_and_files": "", "other_output_files": "", + "our_help_page": "", "our_team_will_get_back_to_you_shortly": "", "our_values": "", "out_of_sync": "", diff --git a/services/web/frontend/js/features/settings/components/account-info-section.tsx b/services/web/frontend/js/features/settings/components/account-info-section.tsx index 4fd410d89f..1ff865e757 100644 --- a/services/web/frontend/js/features/settings/components/account-info-section.tsx +++ b/services/web/frontend/js/features/settings/components/account-info-section.tsx @@ -70,7 +70,7 @@ function AccountInfoSection() { return ( <> -