This PR makes the Show Solution/Hide Solution and Check buttons in multiple-choice quizzes keyboard-interactive, which is needed for improved accessibility.
How can this be tested?
Spin up a course with a multiple-choice quiz, for example yarn start course 15.071-spring-2017.
Navigate to a page with a multiple-choice quiz, such as http://localhost:3000/pages/logistic-regression/the-framingham-heart-study-evaluating-risk-factors-to-save-lives/quick-question-225/.
Verify that the Check and Show Solution buttons are keyboard-interactive. For the Check button, this means selecting one of the quiz options and then using the keyboard to push the Check button. For the Show Solution button, this does not require one of the options to be selected first.
What are the relevant tickets?
Closes https://github.com/mitodl/ocw-hugo-themes/issues/1252.
Description (What does it do?)
This PR makes the
Show Solution
/Hide Solution
andCheck
buttons in multiple-choice quizzes keyboard-interactive, which is needed for improved accessibility.How can this be tested?
yarn start course 15.071-spring-2017
.http://localhost:3000/pages/logistic-regression/the-framingham-heart-study-evaluating-risk-factors-to-save-lives/quick-question-225/
.Check
andShow Solution
buttons are keyboard-interactive. For theCheck
button, this means selecting one of the quiz options and then using the keyboard to push theCheck
button. For theShow Solution
button, this does not require one of the options to be selected first.