In short
Custom input widgets built with roles like combobox, searchbox, textbox, listbox, slider or spinbutton need a name, just like native fields. Add aria-label or aria-labelledby pointing to visible label text. Weight 7.
<div role="combobox" aria-label="Choose a country" ...></div>
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Lighthouse accessibility score
MDN, ARIA: combobox role

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



