Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editable aria-label for search field (and other fields) #134

Open
El-Rico opened this issue Nov 27, 2024 · 1 comment
Open

Editable aria-label for search field (and other fields) #134

El-Rico opened this issue Nov 27, 2024 · 1 comment

Comments

@El-Rico
Copy link

El-Rico commented Nov 27, 2024

I'd like to add an ariaLabel option to searchui.searchField({}) to change the default aria-label for Accessibility purposes.

@haoAddsearch
Copy link
Collaborator

@El-Rico you can customise searchField's rendered HTML by using the option "template".
Could use this default template with some minor tweaks: https://github.com/AddSearch/search-ui/blob/master/src/components/searchfield/precompile-templates/searchfield.handlebars

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

No branches or pull requests

2 participants