-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
type: a11y ♿Issues not following accessibility standardsIssues not following accessibility standards
Description
Browser
No response
Operating System
No response
Package version
0.18.0
React version
18.3.1
Automated testing tool and ruleset
n/a
Assistive technology
No response
Description
When the modal dialog opens in full screen mode, keyboard users and screen reader users are able to navigate outside the modal content to elements behind the modal- which disorienting the screen reader users.
Note: Used Tab /Arrow key navigation
Recommended fix: Once the Modal is active - focus not expected to move out from the Modal on Tab/Arrow key navigation .
- Ensure users can cycle through interactive elements inside the modal using Tab and Shift + Tab keys.
- Prevent focus from moving to the page content outside the modal until the modal is closed.
- Use proper ARIA roles (role="dialog" or role="alert dialog") and JavaScript focus management to maintain focus within the modal.
User impact: Impact keyboard /screen reader users: Lack of focus trapping leads to confusion, disorientation, and loss of context, making it difficult for users to interact efficiently with the modal content.
WCAG 2.1 Violation
WCAG Mapping: 2.4.3 Focus Order
Reproduction/example
n/a
Steps to reproduce
- open ai-chat
- enable full screen mode
- use TAB keys to move focus
- see that focus can leave chat window
Code of Conduct
- I agree to follow this project's Code of Conduct
- I checked the current issues for duplicate problems
Metadata
Metadata
Assignees
Labels
type: a11y ♿Issues not following accessibility standardsIssues not following accessibility standards