You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @alanclarke, thank you for putting out this library - seems very useful.
As I began implementing, I noticed a few things which I wanted to bring up -
Support for placeholder: I feel like if you don't have a value to initialize with, showing a placeholder would be good user experience. The placeholder could be time or a string (like 'enter time').
Guides: This is especially useful when one begins to type, as it guides the user. So, lets say a user starts entering the number I am thinking of being able to show the separator and no text (or grayed out text). This, in conjunction with the a placeholder time makes for a good user experience as the placeholder doesn't disapper but just grays out acting as a guide.
When we enter the two digits for the hours, I feel like the cursor should move past the separator seeing how it moved to the next digit previously (when you enter the first hour digit).
I noticed that the input has type=text. I wonder if it would be more semantic to have it be type=time?
Thank you!
The text was updated successfully, but these errors were encountered:
Yeah agree, also think that this should be configurable option like in other standard inputs
I don't quite follow what you mean, could you point me to an example?
Good shout, we should do this
Unfortunately this is not possible for technical reasons - the type=time input is a thing and has a lot of incompatible behaviour which is also inconsistent across different browsers and devices (sometimes causes popup, sometimes dropdown, sometimes something similar to this component)
Hi @alanclarke, thank you for putting out this library - seems very useful.
As I began implementing, I noticed a few things which I wanted to bring up -
Support for placeholder: I feel like if you don't have a value to initialize with, showing a placeholder would be good user experience. The placeholder could be time or a string (like 'enter time').
Guides: This is especially useful when one begins to type, as it guides the user. So, lets say a user starts entering the number I am thinking of being able to show the separator and no text (or grayed out text). This, in conjunction with the a placeholder time makes for a good user experience as the placeholder doesn't disapper but just grays out acting as a guide.
When we enter the two digits for the hours, I feel like the cursor should move past the separator seeing how it moved to the next digit previously (when you enter the first hour digit).
I noticed that the
input
hastype=text
. I wonder if it would be more semantic to have it betype=time
?Thank you!
The text was updated successfully, but these errors were encountered: