Skip to content

Conversation

@ParthAggarwal16
Copy link

This PR improves accessibility of the search input in Searchbar.tsx to get better support

changes:

  • added proper <label> element for search input
  • added aria-invalid to indicate error state
  • added aria-describedby to link input with error messages
  • added role="alert" so errors announced to screen readers
  • added aria-hidden="true" to decorative search icon

I manually tested this by:
submitting an empty search to verify error announcements
verified ARIA attributes update correctly in browser devtools
check accessibility feedback using lighthouse

closes #687
image
image

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

Successfully merging this pull request may close these issues.

Missing Accessibility Attributes on Search Input

1 participant