-
Notifications
You must be signed in to change notification settings - Fork 424
Pattern for browsable 'locked' or 'answered' quiz/test/exam question? #2508
Use case: e-learning quiz, test or exam where we want to 'lock' an answer in such a way that the user can 'browse back' and be reminded what they answered, but not permit any changes. Essentially a "write-only" form control.
This is very especially in the case where the question remains on the screen after being answered. What changes should be made to the question widget, so that it may be locked, but still browsable?
A pattern is required because the implementation is not obvious, and there are a number of aria attributes which may be 'false friends' for this job.
- A locked answer is non-operable, but neither disabled nor aria-disabled
- A locked answer is non-editable, but not aria-readonly
- A given answer is not aria-checked, even though there may be a cross or checkmark.
- The 'correct' answer (e.g. in a radiogroup) is not necessarily the one that got selected.
What, then, is the optimal approach? It was recently suggested that the optimal thing was to put aria-hidden="true" on the question, and add a brief accessible description (or perhaps aria-details) along the lines of
"Question: 2 Who is the best Beatle? You answered John. The correct answer is George"
Are there other viable implementations?
Can we cook up a working pattern and present it on APG?
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Issue actions