From 054acef1ddd97b76684d7fe36f34bb4734d6503d Mon Sep 17 00:00:00 2001 From: 0xMBL <0xmbl@proton.me06> Date: Tue, 28 Nov 2023 11:36:49 +0000 Subject: [PATCH] added aria label to main feedback widget for screen readers to identify the use of the button. Also added to en common.json file. Text subject to change if necessary. --- src/components/FeedbackWidget.tsx | 1 + src/intl/en/common.json | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/FeedbackWidget.tsx b/src/components/FeedbackWidget.tsx index 66d2a8a7a10..ad669ea7c39 100644 --- a/src/components/FeedbackWidget.tsx +++ b/src/components/FeedbackWidget.tsx @@ -58,6 +58,7 @@ const FixedDot: React.FC = ({ }} transition="transform 0.2s ease-in-out, width 0.25s linear, border-radius 0.25s linear" + aria-label={t("feedback-widget")} {...props} > {children} diff --git a/src/intl/en/common.json b/src/intl/en/common.json index d93be2f3864..daa29553239 100644 --- a/src/intl/en/common.json +++ b/src/intl/en/common.json @@ -90,6 +90,7 @@ "ethereum-support": "Ethereum support", "ethereum-wallets": "Ethereum wallets", "ethereum-whitepaper": "Ethereum Whitepaper", + "feedback-widget": "feedback", "feedback-widget-prompt": "Is this page helpful?", "feedback-card-prompt-page": "Was this page helpful?", "feedback-card-prompt-article": "Was this article helpful?",