ionic-framework
ionic-framework copied to clipboard
feat: improved `aria-label` for the searchbar's clear button, or a way for consuming apps to customize this value
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
The clear button on the ion-searchbar
has an aria-label
of "reset" (code here), which is not clear enough for screenreader users. The label should be more descriptive, perhaps “clear search input”.
Describe the Use Case
"Reset" may be unclear to screenreader users, and so the button's aria-label
should be more descriptive.
Describe Preferred Solution
Two possible solutions:
- Add a prop so that consuming applications can optionally pass their own
aria-label
for the searchbar's "clear button". - Update the existing
aria-label
(here) to be something more descriptive, like "clear search input".
Thank you!!
Describe Alternatives
No response
Related Code
No response
Additional Information
No response