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

[Bug] focusVisible status is not added correctly when user interacts with keyboard and mouse #278

Open
233mawile opened this issue Mar 13, 2023 · 0 comments

Comments

@233mawile
Copy link

233mawile commented Mar 13, 2023

Demo: https://codepen.io/233mawile/pen/bGxLMdV
I simply implemented a dialog in the demo. The button in dialog should also be in focusVisible state after I clicked the 'open dialog' button in focusVisible state. It is different from browser's implementation.

Reproduce:

  1. press 'tab' to focus 'open dialog' button
  2. click 'open dialog' button

Expect:
The button in dialog should have focusVisible(polyfill) state.

Actual:
The button in dialog has no focusVisible(polyfill) state.

2023-03-13.15.38.43.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant