microsoft / rushstack-websites

Doc content for the Rush Stack websites.
Creative Commons Attribution 4.0 International
23 stars 69 forks source link

[TSDoc> Search]: Keyboard focus is not retaining back to the 'Search' button on pressing Esc key to close the 'Search' dialog. #167

Closed vaishali1397 closed 3 months ago

vaishali1397 commented 1 year ago

Test Environment: OS Version: 22H2 (OS Build 25370.1) Browser: Edge Dev (Version 115.0.1866.1 (Official build) dev (64-bit)) URL: https://tsdoc.org/

Repro Steps:

  1. Open the above URL in edge dev browser and login with v-.
  2. Run the fast pass of accessibility insights for web.
  3. Observe the issue on 'Search' button and activate it.
  4. Now navigate on the 'Search' dialog and press Esc key to close the dialog.

Actual Result: Keyboard focus is not retaining back to the 'Search' button on pressing Esc key to close the 'Search' dialog. Keyboard focus is getting lost and on pressing tab keyboard focus is landing on the 'Roadmap' link in header.

Expected Result: On pressing Esc key to close the 'Search' dialog, keyboard focus should retain back to the 'Search button'.

User Impact: Keyboard dependent user will get impacted as user will have difficultfy inidentifying the keyboard focus and have to renavigate to content to land on 'Search' button.

WCAG Reference Link: https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html

Have feedback to share on Bugs? Please help fill Trusted Tester Bug Feedback (office.com)"

https://github.com/microsoft/rushstack-websites/assets/104483005/e60dd7d9-2547-4d4c-b879-5509bd2c53f2