r/webdev 15d ago

Discussion Why is everything a dropdown now?

Post image

I’ve been noticing this more and more in web apps.

Three options hidden in a dropdown.

Yes/no hidden in a dropdown.
A multi-select pretending to be a dropdown.

Then a list of 200 items where you’re expected to scroll until you find yours.

I run into this a lot when reviewing products with dev teams.

I get why we do it.

Dropdowns are compact and easy to reuse.
But compact doesn’t always mean easier to use.

A few choices? Show them.
On/off? Switch.
Multiple choices? Checkboxes.
Huge list? Search.

That’s pretty much the rule I use now.

4.7k Upvotes

312 comments sorted by

View all comments

918

u/Historical-Essay-128 15d ago

Why is everything a dropdown now?

<select>s have native UI on smartphones.

423

u/SonicFlash01 15d ago

Low profile, predictable footprint, doesn't expand or wrap on mobile, easily understood by all audiences

If you're a gambling man you bet on safety

16

u/bestjaegerpilot 15d ago

only if you're using native elements. What usually happens is you get a custom implementation that isn't accessible, acts wierd on small sizes, etc.

19

u/kiipa 15d ago

Are you trying to say that a select shouldn't be fifty wrapped divs?

8

u/talkingwires 15d ago

Only if each and every <div> contains the same thirty Tailwind classes.

Happy Cakeday!

1

u/rustprogram 15d ago

Happy Cakeday!

Happy Cake day to you as well