kolibri
kolibri copied to clipboard
AccordionItem header fails axe nested-interactive, button-name and aria-valid-attr-value
❌ 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.vueL13-57 renders the chevronKIconButtoninside the header<button>; the chevron has no accessible name.- L18 and L59-61: a collapsed item's
aria-controlsnames an id that is not in the DOM, because the content isv-if'd. - Every view rendering this component inherits the violations, including Coach course pages and side panels, Learn
CourseWelcomePageandUnitTreeAccordion,QuestionsAccordion,AttemptLogList,AccordionSelectGroupandQTISandboxPage.
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
- Open any view that renders an
AccordionItemwith atitle. - Leave at least one item collapsed.
- Run an axe-core audit on the page.
Context
- Kolibri
developat 758605b764. - Chromium (Playwright) with axe-core.
Acceptance Criteria
- [ ] axe reports no
nested-interactive,button-nameoraria-valid-attr-valueviolation on anAccordionItem, collapsed or expanded, withfoldingIconTrailingtrue 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.