-
Notifications
You must be signed in to change notification settings - Fork 2
Input type 'datetime' not working #195
Comments
Could you add some more information as to what your are expecting it to do? |
Apparently there is no specific datetime input UI behaviour available in the styleguide. |
ATM we use the HTML5 elements. The reasoning is that those are fully accessible, which is an important requirement. Custom datetime pickers usually aren't. This means that we follow the browser for styling these elements. I'll ask @delrueba to clarify this further. |
The strict view: if there's a HTML element, we should use the HTML element.
However: browser support for input type=date is horrible, so I understand the longing for another implementation and feel like this is a discussion worth having! Since input type date degrades to type text when it's not supported, my initial proposal would be to rely on correct labelling and front-end validation by use of the pattern attribute. Some further information about the support and fallback possibilities for input type=date: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date |
@delrueba Action item for this ticket (long-term): document these things in the styleguide itself :) |
The input type 'datetime' is not working as expecting.
https://stijlgids.stad.gent/components/detail/input-datetime.html
The text was updated successfully, but these errors were encountered: