4 ms·
author here, just to note our current design pattern for this is slightly updated: https://design-system.service.gov.uk/components/date-input/ https://design-sy
by joelanman 4y ago
author here, just to note our current design pattern for this is slightly updated:
https://design-system.service.gov.uk/components/date-input/ https://design-system.service.gov.uk/components/date-input/
- Aachen 4y agoVery cool to see author responses on an article from 2013! I was wondering why you chose to use the placeholder attribute to show labels rather than the (afaik recommended) usage of showing example values. The form shows example values, but outside the input fields. Did you test both ways and this turned out to be better after all, or this was just an implementation which worked fine in testing so it stuck?
- joelanman 4y agoI think I just didn't realise how poor placeholders are in general at that point, compared to just having visible labels/examples. Placeholders disappear when you start typing and have poor contrast