dequelabs / dequelabs/axe-core

Provide warning when a switch has a mixed value (which is not to spec)

Open
#3,731 1 comment 0 reactions 0 assignees View on GitHub
rules
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

Provide at least a warning when an element with a `switch` role has a `mixed` value, which is against specification.

> The [aria-checked](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) [attribute](https://www.w3.org/TR/wai-aria-1.1/#dfn-attribute) of a switch indicates whether the input is on (true) or off (false). The mixed value is invalid, and user agents MUST treat a mixed value as equivalent to false for this role.

References:
https://www.w3.org/TR/wai-aria-1.1/#switch
https://adrianroselli.com/2021/10/switch-role-support.html#Testing

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.