microsoft / rushstack-websites

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

{Freeway-Bug}[TSDoc> Search]- Ensures every ARIA input field has an accessible name for the search result. #242

Open vagpt opened 2 weeks ago

vagpt commented 2 weeks ago

Test Environment: Version: Version 24H2 (OS Build 26231.5000) Browser Version: 127.0.2638.2 (Official build) dev (64-bit) URL: https://tsdoc.org/ Tool: Accessibility Insights for Web

Repro Steps:

  1. Open the above URL in edge dev browser and login with v-.
  2. Press the tab key and navigate to the 'Search' field and press enter key to activate it.
  3. Type any search character and press enter key to search.
  4. Run the fast pass of accessibility insights for web.
  5. Observe the issue.

Actual Result: For the search result input fields does not have an accessible name. Also, Aria label is not defined for the search result.

Expected Result: Ensures every ARIA input field has an accessible name for the search result. Also, ARIA label should be defined for the search result so that when the screen reader focus lands on it then screen reader should announce as Tags @alpha 1 of 5 selected.

Element path: .DocSearch-Hits:nth-child(1) > ul[role="listbox"][aria-labelledby="docsearch-label"]

Snippet: