Text Fields (Date Picker)

Date Pickers allow users to input a single date by selecting from a calendar view.

Variants

Date Picker
/content/dam/design-framework/components-app/text-fields-(date-picker)/Datepicker Variant.png
Variant Usage

Default

Date Picker on load state

Active

Date selected

Disabled

Date Picker is not available for input

Error

Date Picker is validated with an error

Anatomy

Date Picker fields are made up of the following:

  1. Text label: All variants except for Default will have text labels, it describes what the input is for.
  2. Icon : Calendar button for the user to launch the Date Picker.
  3. Placeholder/Input: Where input details will fill up the field.
  4. Line: Containers can expand, and can be solid or outlined.
  5. Inline message: For validation messages.

Size

Textfield should have a fixed width. (87.73% of screen size)

Text Style

All text labels in our buttons have the same text size

  1. Label size
    • Title Case for Label (i.e. Click here, Sign up now).
    • Use “label or note” text style on Figma.
  2. Inline message
    • Sentence Case.
    • Use “Note Small” text style on Figma.
  3. Body copy - Use body emphasis and black emphasis colour when in typing state.

 

Dos and Don'ts

doimage
Use inline messages only when necessary,i.e. error messages
dontimg
Truncate text labels.