top | item 38629896

(no title)

aridiculous | 2 years ago

One of the few un-nuanced takes I have is that every component library/DS should be built on top of Radix or React-Aria or some other thorough but extensible library. If you’re implementing your own tooltips and menus, you’ve lost the plot. We need to stop reimplementing bad versions of commoditized bits of UI that overlook accessibility, appropriately generic prop APIs, boundary detection, composability, documentation, testing, etc.

It pains me to see dev teams spending time on rebuilding solved problems. I understand brownfield constraints, but the greenfield situations are particularly painful.

discuss

order

crooked-v|2 years ago

It's painful sometimes to think of the sheer number of man-hours wasted because browsers have never added a combobox or any way to style select dropdowns.

spartanatreyu|2 years ago

There's a new spec for better dropdowns in the works: https://css-tricks.com/the-selectmenu-element/

The whole reason they've been bad is "We can't change `<select>` because it would break backwards compatibility".

So the new solution is to create a new element: `<selectmenu>` which is made to be customised, while still being accessible.