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
Currently our datepicker inputs always show the calendar popover, and this leads to a pretty cumbersome interface in places like the search filters where we have both a before and after date input.
Solution
Coming from this thread, let’s update our datepicker so that the calendar popover only appears when the input is focused.
CleanShot.2024-11-15.at.08.49.24.mp4
Notes:
For this update, we’re going to leave the placeholder text as is. Focusing the input should only change the border to green and make the popover appear. (It should not bring up the keyboard on mobile.)
Selecting a date in the popover should set the date in the input and blur the input (thereby dismissing the calendar popover).
We also need to update the selected state of the date to match our designs (green background, bold text, with the same text color we use for our green buttons).
For the date filter in search and other places where there may be multiple inputs, we do not want to auto-focus the first date input (as this would hide the input below it), but in situations where there is only one date input (like clearing your status for example) we do want to autofocus the input to reveal the popover right away.
We plan on doing a “phase 2” update to the datepicker where we will allow users to select a date by either using the popover OR by typing a date into the input, likely using some kind of guided input (example), so let’s keep that in mind as we’re making this update. But to be clear, for phase 1, we’re not planning on tackling the guided input aspect.
Problem
Currently our datepicker inputs always show the calendar popover, and this leads to a pretty cumbersome interface in places like the search filters where we have both a before and after date input.
Solution
Coming from this thread, let’s update our datepicker so that the calendar popover only appears when the input is focused.
CleanShot.2024-11-15.at.08.49.24.mp4
Notes:
Figma file
cc @Expensify/design
Upwork Automation - Do Not Edit