Add Aria Label to SearchBox instantsearch widget

Hi,
is there a way to add the tag aria-label in the text input tag of the search widget? https://community.algolia.com/instantsearch.js/v2/widgets/searchBox.html

We do not forward any attributes to the DOM element via the searchBox widget options.

You can however create your own DOM output using the connectSearchBox connector.

If you don’t want to recreate the full rendering, you might be able to dynamically add the aria-label attribute to the text input in JavaScript once the widget has loaded.

On a side note, you’re referring to InstantSearch.js v2. We recommend using InstantSearch.js v3 if that’s possible on your side.