Making a Better Custom Select Element
4 Comments
Comments are ordered by helpfulness, as indicated by you. Help us pick out the gems and discourage asshattery by voting on notable comments.
Got something to add? You can leave a comment below.
James Wilson
Gerard K. Cohen
Agreed, accessible custom selects are necessary and we should not always push the native if use cases are not solved by it. I would also like to share my learnings when diving into this problem: https://www.technica11y.org/making-custom-selects-accessible
Custom Selects are not going away, so I think it’s important that we explore ways to make this usable for everyone.
Rishi
Always look forward to the revival of this site every December!
Jay
I’m familiar with the aria concepts, but find them hard to put together for anything non-trivial. Thanks for running through a complete example. It’s especially useful to see the part about the hidden “count” while typing, since that’s not an obvious thing (as a sighted user).
I was wondering how you would handle the occasion where the dropdown overflows off the page?