react-magma
react-magma copied to clipboard
[Accessibility] [AXE] [Select > Disabled items/Multi select] : Interactive controls are nested, causing screen reader and focus issues
Platform: Windows 11 / Chrome
Steps to reproduce:
- Open the URL: https://react-magma.cengage.com/version/4.9.1
- Now Navigate to side navigation and expand 'Components' button.
- Now activate 'Select' link under API
- Now navigate to 'Disabled items' section, Inspect the page,
- Launch Axe dev tool and verify.
Actual Result:
- Element with tabindex="-1" and aria-hidden="true" is still exposed to assistive technologies.
- Screen readers may still announce the hidden element.
- Focusable elements remain in the accessibility tree, despite being marked as hidden.
Expected Result:
- Hidden, non-interactive elements should be fully removed from the accessibility tree.
- Screen readers and keyboard users should not be able to focus or access such elements.
- Focusable elements within interactive containers must be explicitly excluded using proper patterns.
Instances:
- [Accessibility] [AXE] [Charts] : Interactive controls are nested, causing screen reader and focus issues. https://app.screencast.com/PayMEBoEAB67V
WCAG Guideline: 4.1.2 Name, Role, Value Level A
User Impact: Users may encounter unexpected or invisible focus targets. Screen readers may announce elements meant to be hidden, causing confusion and disorientation. Leads to non-deterministic navigation and interaction, especially for modal dialogs, dropdowns, and dynamic UIs.
Recommendation: To ensure hidden elements are fully removed from the accessibility tree and focus flow:
- Do NOT use tabindex="-1" alone to hide elements from assistive technologies.
- Remove elements entirely from the DOM if not in use, or use hidden visibility patterns correctly.
Screencast: https://app.screencast.com/xNy6b2bYRyHQN