kolibri
kolibri copied to clipboard
Quiz report "Answer history" listbox puts its options inside plain list items
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: develop
Observed behavior
- In
AttemptLogList,<ul role="listbox">holds plain<li>elements, and eachrole="option"sits one level down inside an<li>: AttemptLogList.vue#L101-L135. - axe-core reports three violations on every quiz report that renders the list:
aria-required-children critical .history-list
aria-required-parent critical div[aria-label="Question 1"] … (one per question)
listitem serious .attempt-item:nth-child(1) … (one per question)
User-facing consequences
- Screen readers can't tell how many questions the list holds or which one is selected, because the listbox has no option children.
Steps to reproduce
- As a learner, open any practice quiz in Learn, answer a question and click Submit quiz.
- In the "Resource completed" modal, click View report.
- Run axe-core (e.g. the axe DevTools extension) on the page.
Context
- Kolibri
developat 758605b764. - Chromium, Linux.
Acceptance Criteria
- [ ] axe-core reports no
aria-required-children,aria-required-parentorlistitemviolation on the Learn quiz report or the Coach learner quiz report. - [ ] The Answer history list keeps its Home/End/arrow-key navigation and click-to-select behaviour.
AI usage
Claude Code found this with axe-core while running browser QA on a Learn practice quiz report, then drafted this issue.