Drawers

Drawers provides contextual information and selections
while keeping the main page in view.

Variants

Variant Usage

Drawer with Checkbox

Used when users are allowed to select multiple options

Drawer with Text

Used to display text regarding information relevant to the parent page

Drawer with Radio

Used when users are only allowed to select one option

Drawer with List

Used when user can launch an action from a single selection

Drawer with Search

Used when the user can filter through available options to select one or multiple

Anatomy & Sizes

Inbox cards are made up of the following:

  1. Card Title
  2. Section Title
  3. Body Copy
  4. Notes
  5. Dot (Separator)
  6. Chevron
  7. Activity Alert
  8. Container

Size

Drawers have an overall padding of 24px, and its width depends on the length of the content it has.

Text Style

 

  1. Card Title: Uses “Card Title” text style on Figma
    • Primary Grey color
  2. Secondary Action Button
    • Use “Body (Emphasis)” text style on Figma
    • Singlife Red Color
  3. Body Copy
    • Uses “Body” text style on Figma
    • Primary Grey color
  4. Selected Body Content
    • Use “Body (Emphasis)” text style on Figma
    • Primary Grey color
  5. Call-to-Action Button
    • Use “CTA” text style on Figma
    • Uppercase

 

Behavior

Modal Drawers should be dynamic, capped at 60% of the screen height. Drawers whose contents exceed 60% of the screen height can then be pulled across the full screen, scrolling internally to access their remaining items.

Dos and Don'ts

doimage
Use search filter if drawer is too long, and provide a modal bottom sheet to provide deeplinks to another app. Modal bottom sheets can be used instead of menus to present additional screen actions.
dontimg
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa