From c2aa8ce3e546c585bf33c0cb936f0166a39569d0 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Thu, 16 Dec 2021 04:17:12 -0600 Subject: [PATCH] fix: make completion modal a little more accessible (#44508) * fix: make completion modal a little more accessible * remove: unneeded aria attribute * fix: update snapshots --- client/src/assets/icons/green-pass.tsx | 4 ++-- .../__snapshots__/challenge-title.test.tsx.snap | 10 ++++------ .../completion-modal-body.test.tsx.snap | 13 +++++++------ .../Challenges/components/completion-modal-body.tsx | 10 ++++++++-- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/client/src/assets/icons/green-pass.tsx b/client/src/assets/icons/green-pass.tsx index c4075c6b5e9..ea641726fe6 100644 --- a/client/src/assets/icons/green-pass.tsx +++ b/client/src/assets/icons/green-pass.tsx @@ -8,15 +8,15 @@ function GreenPass( return ( <> - {t('icons.passed')} - + {t('icons.passed')} renders correctly 1`] = ` title text - - icons.passed - renders correctly 1`] = ` width="50" xmlns="http://www.w3.org/2000/svg" > - + icons.passed diff --git a/client/src/templates/Challenges/components/__snapshots__/completion-modal-body.test.tsx.snap b/client/src/templates/Challenges/components/__snapshots__/completion-modal-body.test.tsx.snap index 731152dc193..1461e43babf 100644 --- a/client/src/templates/Challenges/components/__snapshots__/completion-modal-body.test.tsx.snap +++ b/client/src/templates/Challenges/components/__snapshots__/completion-modal-body.test.tsx.snap @@ -5,12 +5,8 @@ exports[` matches snapshot 1`] = ` - - icons.passed - matches snapshot 1`] = ` width="50" xmlns="http://www.w3.org/2000/svg" > - + icons.passed @@ -62,14 +60,17 @@ exports[` matches snapshot 1`] = ` intro:responsive-web-design.blocks.basic-html-and-html5.title learn.percent-complete {blockTitle} - - + + {t('learn.percent-complete', { percent: this.state.shownPercent })}