The small dropdown antipattern
================================================================================
I’ve built a lot of forms over the years, and I keep running into the same
antipattern. Three options in a dropdown. Sometimes two. I’ve seen Yes/No
dropdowns in production code.
It drives me up the wall. A dropdown takes three interactions
(click to open, scan the list, click your choice). Radio buttons take one,
because the options are already on the page.
But dropdowns are still everywhere, and they cost more than patience. UX debt
wears down trust and efficiency
(https://www.stauffer.com/news/blog/ux-debt-is-killing-your-bottom-line-lets-help-you-pay-down-that-debt),
and people who give up on a clumsy form may not come back, even after you’ve
fixed it.
Hiding the options
What I can’t get past is that a dropdown shows you one option and makes you ask
for the rest.
Demo Code
Size
Radio buttons put all of it on the page. If you’re choosing between three
things, why hide two of them?
Demo Code
Size
Small Medium Large
It carries on after you’ve chosen, too. Once you pick from a dropdown the
alternatives disappear again, so changing your mind means reopening it and
remembering what else was in there. With radio buttons the selection sits next
to the other options, and changing your mind is one click.
I think of this as interaction debt. Every unnecessary click is interest on a UX
decision somebody made months or years ago. Nielsen Norman Group calls it
“interaction cost (https://www.nngroup.com/videos/interaction-cost/)”, the sum
of the effort someone has to put in to get what they want. A dropdown costs two
extra steps over radio buttons, which doesn’t sound like much until you multiply
it. A checkout form with three small dropdowns costs six extra steps per
purchase. A settings page with five costs ten.
Two options, or five
The Yes/No dropdown is the one that gets me most. Two options should never be a
dropdown.
Demo Code
Do the thing?
That’s one answer hidden behind a click, for a question that only has two. As
radio buttons, both are right there:
Demo Code
Do the thing?
Yes No
If it’s really a single yes or no, a checkbox is better still:
Demo Code
Do the thing?
Yes, do the thing
And if the change should happen straight away, use a switch:
Demo Code
Do the thing
Which of the three depends on what the control does. A switch
(like Material Design’s toggles (https://m3.material.io/components/switch/overview))
suits something that applies immediately, like WiFi, dark mode or notifications,
because its position shows the current state. A checkbox suits a form where
nothing happens until you press Submit. Radio buttons are better when both
answers need to be visible, or when it isn’t an on/off choice at all: “Preferred
contact: Email / Phone” reads more clearly as radio buttons than “Contact me by
phone” does as a checkbox. Any of them beats a two-option dropdown.
Small sets that people need to compare are the same story. Sizes are the obvious
one, because you want to see where yours sits against the others. Delivery
options are another, since people are weighing cost against speed
(Standard 3-5 days, Express 1-2 days, Overnight, Same Day) and can’t do that if
they can only see one at a time.
Demo Code
Delivery
Standard (3-5 days) Express (1-2 days) Overnight Same Day
Keyboard users get a better deal from radio buttons too. You tab to the group,
then use the arrow keys to choose. A dropdown often needs tab to focus it, space
or enter to open it, arrows to move and enter to confirm
(some desktop browsers let the arrow keys change a closed dropdown, but not all do),
which is more keystrokes and more chances to get lost. Screen readers read out
the group’s legend and let you move through the options in context, where a
dropdown is wordier and clunkier.
Demo Code
Choose your subscription
Free Pro Enterprise
Multi-select, and the workarounds
Multi-select dropdowns are worse again. Nobody knows how to use them. Is it
Ctrl+click? Shift+click? Both?
Demo Code
Features
I’ve watched people try. They click one option and it selects. They click
another and the first one deselects. They try Ctrl+click, which does nothing
because they’re on a Mac, then Cmd+click, which maybe works, and then they give
up. Checkboxes would have been fine, because at least everyone understands
checkboxes.
Demo Code
Features
Feature 1 Feature 2 Feature 3
Some designers reach for “listboxes”, which are a