combobox popover component
I'm playing around with the html popover and css anchor positioning apis to create a dropdown menu.
I was just wondering if anyone could have a look at this stripped down code (almost all styling has been removed) and let me know how you could improve it (not looking for adding customization, just semantics, performance, accessibility type stuff).
One thing that doesn't quite seem right to be is the use of a
I'm pretty sure I don't need to add
I was just wondering if anyone could have a look at this stripped down code (almost all styling has been removed) and let me know how you could improve it (not looking for adding customization, just semantics, performance, accessibility type stuff).
One thing that doesn't quite seem right to be is the use of a
button for each option in the drop down, but I don't want to just use a div with click and key-press events on it.I'm pretty sure I don't need to add
aria-controls and aria-expanded as the popover api controls that.