Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateInput - explore adding guardrail for range #3600

Open
jcfilben opened this issue Nov 17, 2023 · 2 comments
Open

DateInput - explore adding guardrail for range #3600

jcfilben opened this issue Nov 17, 2023 · 2 comments
Labels
0 - office hours Where:Grommet Used in issues related to Grommet, for both internal and external facing

Comments

@jcfilben
Copy link
Collaborator

Brought up by Greg during office hours 11/16

The user experience of the current DateInput is confusing for users when selecting a range of dates. It isn't always clear when clicking is going to select the date vs when it is going to clear an already selected date.
https://design-system.hpe.design/components/dateinput?q=date#date-range

Should we add a guardrail so that after the first date is selected the only available dates to select are ones that are after the first date?
Currently any date is available to be selected even after the first date is selected.

Another potential pattern to explore is having two inputs, one for the first date and another for the second date.

Ruth shared an example of a date selection experience: https://www.aerlingus.com/html/en-IE/home.html

@halocline halocline added the Where:Grommet Used in issues related to Grommet, for both internal and external facing label Nov 30, 2023
@jcfilben
Copy link
Collaborator Author

Related to grommet/grommet#7055

@jcfilben
Copy link
Collaborator Author

Devs chatted on this during Grommet Checkpoint 1/11. Notes/thoughts from that meeting:

  1. How can we improve the experience and make it more clear to the user what they are selecting (start date vs end date) in a backwards compatible way?
  • We could consider a theme property that controls the styling of the 'active' date. A similar 'active' styling pattern can be seen in google flight's date picker. Notice the 'blue' vs 'white' circle
Screen Shot 2024-01-11 at 2 27 34 PM
  1. We could consider adding an optional prop that would disable days that are previous to the selected start date. This pattern can be observed in the googlee flight date picker. Notice when I only have a start date selected (February 14th) dates before that are disabled.
Screen Shot 2024-01-11 at 2 31 22 PM
  1. We should determine what the possible scenarios are for interactions, and what our expectations would be in those scenarios "test driven design".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - office hours Where:Grommet Used in issues related to Grommet, for both internal and external facing
Projects
None yet
Development

No branches or pull requests

2 participants