Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What/Why - Screen reader does not announce the search result information as `No results` on providing invalid input ## Changes - [`src/components/search.js`](https://github.com/npm/documentation/pull/1319/files#diff-995f95946b0cbf613b5cf5d8d6335cb1612dcb31907922cd5da28be90a6ff442) > Add `aria-live` as `polite` to Box element > Add `announce` function to trigger screen reader announcing the `No results` message when there is no search result ## Before ![image](https://github.com/user-attachments/assets/5067f434-b86b-4383-899f-fe88b808abac) ## After - The screen reader announces the search result information as `No results` on providing invalid input ## References - github/accessibility-audits#9196
- Loading branch information