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

Click2Pay info modal: Incorrect focus management #3010

Open
FilipSvozil opened this issue Dec 9, 2024 · 0 comments
Open

Click2Pay info modal: Incorrect focus management #3010

FilipSvozil opened this issue Dec 9, 2024 · 0 comments
Labels
Accessibility Confirmed Issue is confirmed and needs fix

Comments

@FilipSvozil
Copy link

Describe the bug
The click-2-pay info modal:

  • focuses a non-interactive <p> element after opening,
  • and doesn't have a proper focus trap, allowing interaction with background content.

To Reproduce

  1. Open Click to Pay component
  2. Tab to the (i) icon
  3. Activate it using Space key
  4. When the modal opens, there is a focus indicator around a paragraph of text (that is not interactive - it's just a normal text)
  5. When you press Tab key multiple times, the focus escapes from the modal to the page below modal

Expected behavior

  • After opening focus should be on the "Close" button
  • User should not be able to focus elements behind the modal

Screenshots
Screenshot 2024-12-09 at 10 01 24
Screenshot 2024-12-09 at 9 59 39
Screenshot 2024-12-09 at 10 34 53

Desktop (please complete the following information):

  • MacOS 15
  • Chrome 131 and Safari 18

Additional context
We are using npm package: @adyen/[email protected]

@m1aw m1aw added Accessibility Confirmed Issue is confirmed and needs fix labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Confirmed Issue is confirmed and needs fix
Projects
None yet
Development

No branches or pull requests

2 participants