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

Keyboard focus is lost on invoking esc key in search dialog. #2027

Open
msftedad opened this issue Aug 17, 2023 · 1 comment
Open

Keyboard focus is lost on invoking esc key in search dialog. #2027

msftedad opened this issue Aug 17, 2023 · 1 comment

Comments

@msftedad
Copy link

Description

Keyboard focus is lost on invoking esc key in search dialog.
User with motor impairment who rely on keyboard will face if keyboard focus resets.

Steps to reproduce

  1. Open https://docusaurus.io/docs URL.
  2. Navigate to 'Search' button and invoke it.
  3. Now press Esc key to close the ‘Search’ dialog and observe the keyboard focus order.

Live reproduction:
https://docusaurus.io/docs

Expected behavior

After hitting Esc key, keyboard focus should land on the last interacted element i.e., on ‘Search’ button.

Environment

-OS: Windows 11 Enterprise Versiom25324.1011
-Edge Ver: 112.0.1722.23 (Official build) dev (64-bit)
-DocSearch version: 2.4.1

**
https://github.com/algolia/docsearch/assets/93735775/c2b555bb-b151-44cc-a57b-da63216fc904
**
https://github.com/algolia/docsearch/assets/93735775/5ece6625-366d-4175-a5d3-633d21d1c398

@msftedad
Copy link
Author

Hi Team, Any update on this?

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