From 9883dfa01db308f5d898be4f2c7937e831800a84 Mon Sep 17 00:00:00 2001 From: Hasham Qaiser Date: Mon, 18 Mar 2024 10:17:48 -0700 Subject: [PATCH] added aria labels to each good and bad example on advice page works with screen reader correctly --- .../src/pages-form/Advice.tsx | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/products/statement-generator/src/pages-form/Advice.tsx b/products/statement-generator/src/pages-form/Advice.tsx index b006c84a..3ab66bc2 100644 --- a/products/statement-generator/src/pages-form/Advice.tsx +++ b/products/statement-generator/src/pages-form/Advice.tsx @@ -77,42 +77,54 @@ export default function Advice() {
-

{t('advice_page.point1.no')}

+

+ {t('advice_page.point1.no')} +

-

{t('advice_page.point1.yes')}

+

+ {t('advice_page.point1.yes')} +

{t('advice_page.point2.content')}

-

{t('advice_page.point2.no')}

+

+ {t('advice_page.point2.no')} +

-

{t('advice_page.point2.yes')}

+

+ {t('advice_page.point2.yes')} +

{t('advice_page.point3.content')}

-

{t('advice_page.point3.no')}

+

+ {t('advice_page.point3.no')} +

-

{t('advice_page.point3.yes')}

+

+ {t('advice_page.point3.yes')} +