Skip to content

Commit

Permalink
feat(images): only use describy when tooltipl open
Browse files Browse the repository at this point in the history
  • Loading branch information
benprotheroe committed Nov 13, 2024
1 parent 53adfad commit dadbb1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/PupilViews/PupilQuiz/PupilQuiz.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
</OakPrimaryButton>
Expand Down

0 comments on commit dadbb1b

Please sign in to comment.