BrightspaceUI / core

A collection of accessible, free, open-source web components for building Brightspace applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ListItemCheckboxMixin causes ARIA attribute cannot be used: aria-labelledby

Vitalii-Misechko opened this issue · comments

Basically, axe-core 4.2.0 code states that

// aria-label and aria-labelledy are not allowed on elements
// without roles, but if the element has text content then
// we will return undefined as a screen reader will read
// the text content

It seems that _renderCheckboxAction function renders a label that does not have an ARIA role according to getRoles of axe-core.

JFYI @bemailloux @johngwilkinson