A checkbox without a state attribute was detected
| Field | Value |
|---|---|
| Rule code | Manual_Checkbox_State_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 4.1.2 Name, Role, Value |
| Must be fixed at source | No |
Description
Elements that act as checkboxes and trigger functionality like checkboxes require an aria-checked attribute that reflects their active state. When the checkbox is checked, aria-checked should be set to true, and vice versa. Without the aria-checked attribute, the functionality of checkboxes will not be recognized by screen readers.
How to fix
Ensure elements that function as checkboxes have the aria-checked attribute provided. When the checkbox is active or checked, the aria-checked attribute should be set to true. When the checkbox is inactive or unchecked, the aria-checked attribute should be set to false.