Re:<dialog>: The Dialog Element
by dylan604 on Friday December 06, 2024 @04:53PM
(#42344914)
the most commonly used element that I use is the date picker. i hate using it, but i'm not loading some library or framework just for it either.
[ Parent
| on HN ]
Re:<dialog>: The Dialog Element
by thousand_nights on Friday December 06, 2024 @05:03PM
(#42345024)
i don't know what context you're using it in, but imagine a company like airbnb or booking.com using the built in date picker on their front page
you might as well cut their public valuation in half at that point. it's just not worth it to use the completely neglected and anemic components that are part of the browser, they are a joke
Weird. I think the built in date picker is actually pretty nice.
functionally it is perfectly fine. aesthetically, it looks nothing like any other component of the site's style. it very much looks like a band-aid
Re:<dialog>: The Dialog Element
by dotancohen on Saturday December 07, 2024 @05:57PM
(#42353510)
In which browser and OS?
Re:<dialog>: The Dialog Element
by 8n4vidtmkvmk on Saturday December 07, 2024 @03:16AM
(#42348157)
The native datepicker is weird, at least in Chrome. I was playing around with it, and if you give it milliseconds it will render a millisecond picker in intervals of 100. If you give it a nice round minute, then ms and s disappear from the UI. There's no attribute to control this.
I also want a non-local time picker. Let me specify a time that the server can properly interpret as a moment in time. i.e specify an offset somehow.