From 2e46f9e8f4c0242f55982b53d1494dfc154d2f74 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:26:46 +0200 Subject: [PATCH] Merge pull request #14797 from overleaf/rd-report-toggle-switch Accessibility - make the plans view switch to be descriptive GitOrigin-RevId: cd896b9536d3583cff4094b56f02a6d1a8d11b37 --- services/web/app/views/subscriptions/plans/_mixins.pug | 1 + services/web/app/views/subscriptions/plans/_mixins_nudge.pug | 1 + services/web/locales/en.json | 1 + 3 files changed, 3 insertions(+) diff --git a/services/web/app/views/subscriptions/plans/_mixins.pug b/services/web/app/views/subscriptions/plans/_mixins.pug index 2d6c4a0b8c..be80e3e684 100644 --- a/services/web/app/views/subscriptions/plans/_mixins.pug +++ b/services/web/app/views/subscriptions/plans/_mixins.pug @@ -621,6 +621,7 @@ mixin monthly_annual_switch(initialState, eventTracking, eventSegmentation) type="checkbox" checked=monthlyAnnualToggleChecked role="switch" + aria-label=translate("select_monthly_plans") autocomplete="off" event-tracking=eventTracking event-tracking-mb="true" diff --git a/services/web/app/views/subscriptions/plans/_mixins_nudge.pug b/services/web/app/views/subscriptions/plans/_mixins_nudge.pug index ab2dda4d00..ebe52fba76 100644 --- a/services/web/app/views/subscriptions/plans/_mixins_nudge.pug +++ b/services/web/app/views/subscriptions/plans/_mixins_nudge.pug @@ -579,6 +579,7 @@ mixin monthly_annual_switch(initialState, eventTracking, eventSegmentation) type="checkbox" checked=monthlyAnnualToggleChecked role="switch" + aria-label=translate("select_monthly_plans") autocomplete="off" event-tracking=eventTracking event-tracking-mb="true" diff --git a/services/web/locales/en.json b/services/web/locales/en.json index abbd3194a2..d1a26e283d 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1556,6 +1556,7 @@ "select_from_your_computer": "select from your computer", "select_github_repository": "Select a GitHub repository to import into __appName__.", "select_image_from_project_files": "Select image from project files", + "select_monthly_plans": "Select for monthly plans", "select_project": "Select __project__", "select_projects": "Select Projects", "select_tag": "Select tag __tagName__",