Lead:  Asaf Ben-Oved  

Many of the Range Picker structure and behavior is based on Date Picker and <Time picker>, therefore, are not described in this page

Description

Range Picker allows the user to set a customized range of dates with or without hours in a unified component.

Usage & Behaviour

General guidelines

Structure

Component

Image

Range picker field (Dates only)

Range picker menu (Dates only)

Range picker field (Dates and Time)

Range picker menu (Dates and Time)

Added presets Range picker

(question) phase 1 (question) see examples in Sketch

The Range picker field is composed of a string indicating the range (start - end) and an icon. Next to the field, a label would be set.

The Menu is composed of 2 consecutive calendar months horizontally displayed. From left (start) to right (end). The direction might change according to RTL languages.

Beneath each of the calendar months, a manual input field is displayed.

Content

Internal Logic

Interaction

Opening the menu

Clicking anywhere in the external field will open the menu

Selecting a From date

Hovering for the To Date

Selecting the To date

Using the Time picker

Adding the times to the dates follows the same flow as the date picker.

<TBD>

Validations and errors

Example of range picker (date and time):

Transitions

<<TBD>>

Best practices

Accessibility compliance

<<In general each component should be A11y complied,  please follow the 3 guidelines linked below. At the very least we should document that each component is in compliance with each of the 3>>

Focus management

<<How will the component work with keyboard only - without a mouse. Can be reference if written above

We already set a general guidelines described in Keyboard & Focus Management Guidelines >>

Screen reader support 

<<Make sure the components support screen reader for content or behaviour where needed - see Screen Reader Guidelines >>

Contrast & size compliance

<<Visual designers must comply with the minimal of Contrast + Font Size Guidelines for each component>>

Design

Zeplin link

Screen thumbnail

<<Short Zeplin link. You
Use this