An option ARIA role is missing a required parent element of Listbox
| Field | Value |
|---|---|
| Rule code | Option_ParentRequirement_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 4.1.2 Name, Role, Value |
| Must be fixed at source | No |
Description
An option ARIA role was found to be missing the required parent Listbox element. Without the appropriate listbox parent element, assistive technologies such as screen readers cannot correctly interpret the structure of the listbox and its options. View the W3 details on these components here: https://www.w3.org/TR/wai-aria-1.1/#option.
How to fix
Ensure that each option aria role element (e.g., [role='option']) is correctly nested within a parent listbox element (e.g., [role='listbox']). This nesting is crucial for assistive technologies to properly interpret the structure of the listbox and its nested options.