From 5f02801cb9d0c8a66e418b0152906809a6114fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ca=C5=82ka?= <25438601+rafaucau@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:18:32 +0100 Subject: [PATCH] a11y(optional-policies): add aria label to close button --- js/src/forum/components/UpdateAlert.tsx | 1 + resources/locale/en.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/forum/components/UpdateAlert.tsx b/js/src/forum/components/UpdateAlert.tsx index 3051749..8f938a9 100644 --- a/js/src/forum/components/UpdateAlert.tsx +++ b/js/src/forum/components/UpdateAlert.tsx @@ -45,6 +45,7 @@ export default class UpdateAlert { onclick={() => { temporarilyHidden = true; }} + aria-label={app.translator.trans('fof-terms.forum.update-alert.close')} /> ); } diff --git a/resources/locale/en.yml b/resources/locale/en.yml index 2c6e0aa..49d35d5 100644 --- a/resources/locale/en.yml +++ b/resources/locale/en.yml @@ -71,8 +71,9 @@ fof-terms: update-alert: must-accept-message: We've temporarily restricted access to your account while you check out the new terms. - can-accept-message: We recently updated the terms. You must accept them to continue using this website. + can-accept-message: We recently updated the terms. You can accept them to continue using this website. review: Click here to review and accept the new terms + close: Close user_settings: optional_policies_label: Policies