equal-access icon indicating copy to clipboard operation
equal-access copied to clipboard

[BUG]: Checkbox with role=switch fails with/without aria-checked

Open scottnath opened this issue 2 years ago • 1 comments

Project

a11y checker

Browser

No response

Operating system

No response

Description

A checkbox with role="switch" and aria-checked returns an The ARIA attribute 'aria-checked' is not valid for the element <input> with ARIA role 'switch' error. see aat error page

but if we remove aria-checked, then we get the error An element with ARIA role 'switch' does not have the required ARIA attribute(s): 'aria-checked' see aat error

Steps to reproduce

Changes can be seen in this ibm-internal pull request https://github.ibm.com/w3ds/w3ds/pull/1937

scottnath avatar Apr 21 '22 21:04 scottnath