You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When focus moves to an iframe from outside the focus indicator is not shown for the first element. Second time the focus moves it becomes visible. This effects all iframe's in browsers, and I can see this happening in android webview. I have noticed this happening with buttons but I'm guessing this will effect all components with focus indicators. Confirmed for rating, checkbox and radio.
From a keyboard users perspective it appears as if the focus is skipping the first element in the page. This creates a very confusing experience for users.
From what I can tell this is due to keyborg. I have tried debugging the issue to identify why indicator wasn't showing, from what I can tell it is returning because of this line from the keyborg library. Looks like the relatedTarget is empty when focusing is coming outside the iframe and keyborg doesn't set isNavigatingWithKeyboard to true because of it.
Expected Behavior
Focus indicator should be correctly shown for the first element too.
Component
Other...
Package version
9.56.8
React version
18.3.1
Environment
Current Behavior
When focus moves to an iframe from outside the focus indicator is not shown for the first element. Second time the focus moves it becomes visible. This effects all iframe's in browsers, and I can see this happening in android webview. I have noticed this happening with buttons but I'm guessing this will effect all components with focus indicators. Confirmed for rating, checkbox and radio.
From a keyboard users perspective it appears as if the focus is skipping the first element in the page. This creates a very confusing experience for users.
Here are some screen recordings:
from stackblitz with iframe
from an android app with webview
From what I can tell this is due to keyborg. I have tried debugging the issue to identify why indicator wasn't showing, from what I can tell it is returning because of this line from the keyborg library. Looks like the relatedTarget is empty when focusing is coming outside the iframe and keyborg doesn't set isNavigatingWithKeyboard to true because of it.
Expected Behavior
Focus indicator should be correctly shown for the first element too.
Reproduction
https://stackblitz.com/edit/xhfkuy6p?file=src%2FApp.tsx,src%2Fexample.tsx
Steps to reproduce
This can be reproduced with any example from the docs. It isn't specific to this example.
Are you reporting an Accessibility issue?
yes
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: