kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Quiz report "Answer history" listbox puts its options inside plain list items

Open rtibblesbot opened this issue 1 week ago • 0 comments

❌ 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 each role="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

  1. As a learner, open any practice quiz in Learn, answer a question and click Submit quiz.
  2. In the "Resource completed" modal, click View report.
  3. Run axe-core (e.g. the axe DevTools extension) on the page.

Context

  • Kolibri develop at 758605b764.
  • Chromium, Linux.

Acceptance Criteria

  • [ ] axe-core reports no aria-required-children, aria-required-parent or listitem violation 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.

rtibblesbot avatar Nov 25 '26 19:11 rtibblesbot