3 ms·
Very nice and very clean! And I love the demo page. May deserve an update for styled pop-up menus, which became available recently, compare [1]. (Minor nitpick
by masswerk 4y ago
Very nice and very clean! And I love the demo page. May deserve an update for styled pop-up menus, which became available recently, compare [1].
(Minor nitpick: I'm missing the combo box, the much discussed genuine UI element of Windows. – Have a look at datalists for input elements.)
[1] https://web.dev/state-of-css-2022/#customizing-select-elements https://web.dev/state-of-css-2022/#customizing-select-elemen...
- mook 4y agoHmm, am I misparsing the documentation? As far as I can tell from that link,<selectmenu> is actually not yet generally available. (It's also nowhere on MDN.) I was all excited about using it…
- 8n4vidtmkvmk 4y ago<selectmenu> is available in Chromium-based browsers and requires a Canary version as well as the Experimental Web Platform features flag to be enabled in about:flags.
- lelandfe 4y agoMy pet theory is that web.dev exists to raise hype around wildly experimental features and thus put pressure on other browser vendors to implement them.
- lelandfe 4y ago> styled pop-up menus, which became available recently It is not available in any mainline browser to my knowledge. It's still under development, and requires a flag to be set to use: https://open-ui.org/prototypes/selectmenu https://open-ui.org/prototypes/selectmenu
- masswerk 4y agoI think, we'll see broader support soon. It's probably worth waiting, since it's a better solution than any homegrown code, regarding accessibility and overall robustness. (Worst case, you just lose some styling.)