From dadbb1b28bfd1a4e32e4ef7d32d48ed370181659 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 13 Nov 2024 14:39:55 +0000 Subject: [PATCH] feat(images): only use describy when tooltipl open --- src/components/PupilViews/PupilQuiz/PupilQuiz.view.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/PupilViews/PupilQuiz/PupilQuiz.view.tsx b/src/components/PupilViews/PupilQuiz/PupilQuiz.view.tsx index a87c536b2b..cf3311db9c 100644 --- a/src/components/PupilViews/PupilQuiz/PupilQuiz.view.tsx +++ b/src/components/PupilViews/PupilQuiz/PupilQuiz.view.tsx @@ -172,7 +172,11 @@ const QuizInner = () => { isTrailingIcon iconName="arrow-right" width={["100%", "max-content"]} - aria-describedby="quiz-tooltip" + aria-describedby={ + currentQuestionState?.mode === "incomplete" + ? "quiz-tooltip" + : undefined + } > Check