-
Notifications
You must be signed in to change notification settings - Fork 250
allow correct answer/hide correct answer buttons to be keyboard/screen reader accessible #3051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…Q/GMCQ that use itemsQuestionModel.js
remove unused parameters from updateAttemptsCount
|
should also resolve #2961 |
|
Sample course: Notes:
|
cahirodoherty-learningpool
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
tomgreenfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👁️
| } else { | ||
| ariaAnswer = globals.ariaCorrectAnswers; | ||
| const correctOptions = this.getChildren().where({ _shouldBeSelected: true }); | ||
| correctAnswer = correctOptions.map(correctOption => correctOption.get('text')).join('<br>'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, could always pass through the correct answers as an array, giving flexibility to the plugin globals:
The correct answers are {{#each correctAnswer}}{{{this}}}{{#unless @last}}<br>{{/unless}}{{/each}}Don't know if it will ever be tweaked in practice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a nice suggestion but as you say, whether it will ever get used in practice is questionable.... can easily be changed in future if it does come up as a requirement.
part of #2942
Note: will also require updates to all the core question components, these will follow shortlyNow done - except for textInputI'll also try and add a demo build so that anyone wanting to actually test this out can do sodone, see this comment