Searchbox Widget: Allow input type="text" instead of type="search" #4473
-
In this article you describe how to remove the browsers default search input behavior, by using a searchbox with type="text" rather than type="search". It would be really useful if the searchbox widget had the option to implement this. Currently the HTML output uses input type="search", which includes a very ugly 'X' button within the input in Chrome. This also doubles up the reset button which Algolia renders. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Semantically, the Keep in mind that |
Beta Was this translation helpful? Give feedback.
-
Aha perfect! I didn't realise it was possible to remove the X — I've spent ages on this before, didn't know about those psudo child elements 😅 Thanks! |
Beta Was this translation helpful? Give feedback.
Semantically, the
search
type makes more sense than thetext
type. If that's only a matter of browser rendering, I'd recommend adding these CSS properties.Keep in mind that
connectSearchBox
lets you provide your own rendering to interact with the query.