kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

AccordionItem header fails axe nested-interactive, button-name and aria-valid-attr-value

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

  • AccordionItem.vue L13-57 renders the chevron KIconButton inside the header <button>; the chevron has no accessible name.
  • L18 and L59-61: a collapsed item's aria-controls names an id that is not in the DOM, because the content is v-if'd.
  • Every view rendering this component inherits the violations, including Coach course pages and side panels, Learn CourseWelcomePage and UnitTreeAccordion, QuestionsAccordion, AttemptLogList, AccordionSelectGroup and QTISandboxPage.

Errors and logs

axe-core, WCAG 2.0 A, on a panel of nested AccordionItems:

aria-valid-attr-value  critical  .header (each collapsed item)
button-name            critical  .trailing-actions > button (each item)
nested-interactive     serious   .header (each item)

Steps to reproduce

  1. Open any view that renders an AccordionItem with a title.
  2. Leave at least one item collapsed.
  3. Run an axe-core audit on the page.

Context

  • Kolibri develop at 758605b764.
  • Chromium (Playwright) with axe-core.

Acceptance Criteria

  • [ ] axe reports no nested-interactive, button-name or aria-valid-attr-value violation on an AccordionItem, collapsed or expanded, with foldingIconTrailing true and false.
  • [ ] Clicking the header, chevron included, still toggles the item, and Tab still reaches only one stop per header.

AI usage

Claude Code found these violations while running axe during QA of the viewer sandbox, and drafted this issue from the audit output and the component source.

rtibblesbot avatar Nov 25 '26 17:11 rtibblesbot