Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Modals]: incorrect focus order via keyboard navigation #2603

Open
NatalliaAlieva opened this issue Nov 4, 2024 · 1 comment
Open

[Modals]: incorrect focus order via keyboard navigation #2603

NatalliaAlieva opened this issue Nov 4, 2024 · 1 comment
Labels
A11y Accessibility bug bug Something isn't working

Comments

@NatalliaAlieva
Copy link
Collaborator

NatalliaAlieva commented Nov 4, 2024

Description

Upon activation, the modal window does not receive immediate focus with keyboard navigation, as the focus moves sequentially through remaining page elements first.

Steps to Reproduce

  1. Open Modal component.
  2. Navigate to "Modal with Form" example with Tab key.
  3. Activate "Modal with Form" example with Enter key.
  4. Try using the keyboard to navigate inside the modal right after it opens.
  5. Observe the behavior of the focus.

Actual result

The focus does not immediately enter the modal window. Instead, it progresses through other elements on the underlying page before finally moving into the modal.

Screen.Recording.2024-11-04.at.10.47.51.mov

Expected result

When the modal window is activated by pressing Enter, focus should move to the first interactive element inside the modal upon pressing the Tab key. This ensures intuitive and seamless keyboard navigation within the modal.

Environment

  • UUI version: 5.10.2
  • Browser name: any
  • Operating System: any
@NatalliaAlieva NatalliaAlieva added bug Something isn't working A11y Accessibility bug labels Nov 4, 2024
@AlekseyManetov
Copy link
Collaborator

Related to theKashey/react-focus-lock#340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11y Accessibility bug bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants