Please don't mess with links

48 points by gavinmorrow


Nicd

The article says not to roll your own date picker and I want to sympathize, because on mobile it generally does work in my experience. On desktop the experience is not terrible anymore, but there are a couple of statements that I would not be so absolute about.

This will always used the user's preferred date format

I tried the picker on the website in two browsers and they both show me mm/dd/yyyy format and a calendar that starts the week on Sunday, even though my time format is set to Finnish time.

In Firefox I had to go to about:config to edit intl.regional_prefs.use_os_locales so that it would inherit my OS time format (why on earth do I have to do this?) to fix the date picker. You might say this is a browser issue, but by using the standard widget you inherit such browser issues. So I don't wonder why site developers might opt for more control (just give me the native one on mobile!).

also, it's one line of code that works with dark mode by default.

Firefox shows me a white date picker even when using the site's the dark theme. It might be affected by my OS setting of a light theme, but that means another point of incompatibility with the rest of your site design (I might want to keep some sites in dark theme).