Skip to main content
Skip table of contents

Interactive Components


Popover

Use popovers to expose additional context when a user clicks on part of a live visualization.

When popovers use inlay charts, visit Chart Body to see chart specifications and best practices not addressed here.

Developers: Figma component

BrandDocs_Shape_11.png

Components

The popover contains:

  • Title

  • Sections, if needed:

    • Section title

    • Section content

  • Reported date, if needed

  • Horizontal divider, if inlay chart is present

  • Inlay chart, if needed:

    • Title

    • Chart body

Padding and spacing

  • 12px on top

  • 16px on sides

    • Excluding horizontal divider, when present

  • 8px on bottom

    • 4px extra vertical padding between bottom and reported date, when present

  • 8px horizontal between title text and flag, if present

  • 16px vertical between title and sections, if present

  • 2px vertical between section title and section content

  • 8px vertical between sections

  • 16px vertical between title (or last text, if present) and reported date

  • 4px horizontal space between reported date icon and text

  • If inlay chart is present:

    • 8px vertical between title (or last section, if present) and horizontal divider

      • 4px extra vertical padding between horizontal divider and reported date, when present

    • 8px vertical between horizontal divider and inlay chart title

    • 24px vertical between inlay chart title and chart body

    • 4px horizontal space between Y axis labels and chart body

    • Chart body fills available width

    • 170px max chart body height, shorter if appropriate to chart content

    • 8px vertical space between chart body bottom and X axis labels

    • 12px vertical space between chart X axis labels and inlay chart bottom

Layout and responsiveness

  • Popover width is fixed at 280px wide

  • Components hug left and stack vertically

    • Excluding “X” close icon, which hugs top right

  • Popover height hugs the enclosed components

  • Title text is vertically centered to flag, when present

  • Popovers should appear above and to the right of the user click or hover position

    • Popovers respect the edges of map body / chart body and adjust position to fall within the body if a user makes a selection near the edge. Next preferences after above right are above left, followed by below right and below left

Background

The popover background uses White (#FFFFFF).

Inlay chart Y axis segments do not use alternating background fills, unlike chart body in other contexts.

Border

The horizontal divider, if present, is 1px, Gray 3 (#D1D3D4).

Corners

Popovers use a rounded corner with 16px radius.

Shadows

Popovers cast a shadow on the body of the visualization.

Style name

Color

Blur

X offset

Y offset

Spread

Viz On-Map Shadow

#000000, 25% opacity

10px

0px

1.87px

0px

Icons

  • Flags are 40px wide and 22px high, with 1px outside border, Gray 3 (#D1D3D4).

  • The “X” close icon is 16px square enclosing an X, USAID Black (#212721).

Typography

FEWS NET visualizations use the Segoe UI typeface unless specified otherwise. Use Open Sans if Segoe UI is not available.

Style name

Font

Line height

Color

Additional specifications

Popover Title

14px (10.5pt) Bold

140%

USAID Black Dark (#090B09)

Popover Title (Link)

14px (10.5pt) Bold Underlined

140%

Globe Green (#096640)

  • Use when popover title links to another page

Popover Section Title

14px (10.5pt) Regular

140%

USAID Black Dark (#090B09)

  • Use for popover inlay chart title, if present

Popover Text

14px (10.5pt) Bold

140%

USAID Black Dark (#090B09)

Popover Reported Date

12px (9pt) Bold Should be Regular?

120%

USAID Black (#212721)

Popover Inlay Chart Axis Label

14px (10.5pt) Regular

140%

USAID Black Dark (#090B09)


Tooltip

Use tooltips to add additional layers of context when a user hovers over part of a live visualization. Tooltips may appear to expose a global layer, such as to show regional groupings, or to provide more detail when a user hovers over a specific chart or geography, including on an inlay chart inside a popover.

Developers: Figma component

BrandDocs_Shape_12.png

Components

The tooltip contains:

  • Clickable title, if needed

  • Section, if needed:

    • Section title

    • Section content

Padding and spacing

  • 8px on all sides

  • 4px extra bottom spacing if clickable title is the lowest component

  • 4px horizontal between clickable title icon and text, when present

  • 2px vertical between section title and section content

Layout and responsiveness

  • Components hug left and stack vertically

  • Popover width and height hugs the enclosed components

  • Clickable text is vertically centered to flag, when present

  • Tooltips that appear globally should appear for the entire time a users' cursor is present on the visualization body content

  • Tooltips that appear at specific points should appear directly above and horizontally centered on the cursor hover position so the bottom triangular caret appears to be emanating out of the cursor

    • Tooltips respect the edges of map body / chart body and adjust position to fall within the body if a user hovers near the edge. Next preference after directly above the hover point is directly below. This doesn’t apply to tooltips appearing inside popover inlay charts.

Background

The tooltip background uses White (#FFFFFF).

Corners

Tooltips use a rounded corner with 8px radius.

Shadows

Tooltips cast a shadow on the body of the visualization or popover from which they emanate.

Style name

Color

Blur

X offset

Y offset

Spread

Viz On-Map Shadow

#000000, 25% opacity

10px

0px

1.87px

0px

Icons

  • Clickable title icons are 12px square and match the color of clickable title text.

Typography

FEWS NET visualizations use the Segoe UI typeface unless specified otherwise. Use Open Sans if Segoe UI is not available.

Style name

Font

Line height

Color

Additional specifications

Clickable Title

16px (12pt) Bold

140%

Globe Green (#096640)

  • Use when a user’s click on the hovered area will cause an action such as zooming into a section or opening a popover.

  • Use a representative icon in the title to signal what the action will be.

Tooltip Section Title

14px (10.5pt) Regular

140%

USAID Black Dark (#090B09)

Tooltip Text

14px (10.5pt) Bold

140%

USAID Black Dark (#090B09)


Time slider

Use the time slider to allow users to navigate time series data on a live map.

Developers: Figma component

BrandDocs_Shape_13.png

Components

The tooltip contains:

  • Back button

  • Timeline

    • Line

    • Items

      • Tick mark

      • Item text

    • Active pin

  • Forward button

Padding and Spacing

  • 2px on top

  • 12px on sides

  • 6px on bottom

  • 10px horizontal between buttons and timeline

  • 140px minimum item width

  • 4px vertical between item tick mark and item text

Layout and Responsiveness

  • Time slider width fills available horizontal space in the user-interactive zone

  • Time slider height hugs enclosed components

  • Components lie horizontally from left to right

  • Components hug the top

  • Timeline item tick marks and text fall vertically below the timeline line

  • Active pin indicates the selected item and falls directly above the intersection of the selected item tick and the timeline line

  • Timeline item text is horizontally centered to timeline item tick

  • Timeline items fill evenly across available horizontal space

    • When timeline items run out of available space, older items overlap off of the left edge of the timeline component, leaving the future or most recent items visible

Background

The time slider background uses White (#FFFFFF).

Lines

Timeline line and item tick marks are 2px, Stone 400 (#ADADAD)

Borders

The time slider has a 1px, Stone 400 (#ADADAD) border on bottom.

Icons

Active pin is a 12px diameter circle using Globe Green Light (#0B8351) background fill with an outer border 1px, Globe Green (#096640)

Buttons

  • The left and right buttons are circles of 40px diameter enclosing 16px square icons.

  • Buttons use White (#FFFFFF) background fill and icons use Globe Green (#096640). Buttons have an inner border 1px, Stone 400 (#ADADAD)

    • For hover state, background fill uses Sky Blue Lightest (#E4F1EF) and icons use USAID Black Dark (#096640).

Typography

FEWS NET visualizations use the Segoe UI typeface unless specified otherwise. Use Open Sans if Segoe UI is not available.

Style name

Font

Line height

Color

Additional specifications

Timeline item text

14px (10.5pt) Regular

120%

USAID Black Dark (#090B09)

Timeline item text active

14px (10.5pt) Semibold

120%

USAID Black Dark (#090B09)

  • Use for a single time slider item that is currently active


Input

Use the input to allow users to select a view on a live map with multiple views or to select a chart on a multi-layer chart.

Developers: Figma component

BrandDocs_Shape_14.png

Components

The input contains:

  • Input title

  • Input field

    • Selected item text

    • Dropdown icon

    • Dropdown

      • Dropdown section titles, if needed

        • Dropdown items

      • Dropdown items

Padding and spacing

  • 0px on sides

  • 8px horizontal between input title and input field

    • 8px vertical, when wrapped

  • Input field:

    • 6px on top and bottom

    • 16px on left side

    • 12px on right side

  • Dropdown:

    • 0px vertical between items

    • Dropdown item:

      • 8px on top and bottom

      • 6px on sides

Layout and responsiveness

  • Input height hugs components

  • Components hug left, including text inside input field and dropdown items

  • Components sit horizontally until visualization width is 607px or narrower, after which input field wraps below input title

  • Input title:

    • Input title size varies depending on visualization width (see Typography)

  • Input field:

    • Fixed width of 434px, unless wrapped, in which case fills available horizontal space

  • Dropdown:

    • Appears below and directly adjoins input field so dropdown item text is vertically aligned with field text

    • Fills horizontal space to appear visually centered to input field width

Background

  • The input field background uses White (#FFFFFF).

  • The dropdown item uses White (#FFFFFF) background fill.

    • Hover state uses Sky Blue Lightest (#E4F1EF) and selected state uses Sky Blue Light (#BDDBD6).

Borders

  • The input field has a .5px, Globe Green Dark (#074B2F) outer border.

  • The dropdown field has a 1px, Stone 400 (#ADADAD) outer border.

Icons

Dropdown icon is 16px square and uses USAID Black Dark (#096640).

Typography

FEWS NET visualizations use the Segoe UI typeface unless specified otherwise. Use Open Sans if Segoe UI is not available.

Style name

Font

Line height

Color

Additional specifications

Input title XL

16px (12pt) Semibold

140%

USAID Black Dark (#090B09)

  • Use when visualization is at 1452px width or wider

Input title LG-MD

14px (10.5pt) Semibold

140%

USAID Black Dark (#090B09)

  • Use when visualization is between 1452px and 607px wide

Input title SM-XS

14px (10.5pt) Regular

140%

USAID Black Dark (#090B09)

  • Use when visualization is 607px wide or narrower

Input field text

14px (10.5pt) Regular

140%

USAID Black Dark (#090B09)

Dropdown section title

14px (10.5pt) Semibold

140%

USAID Black Dark (#090B09)

Dropdown item

14px (10.5pt) Regular

140%

USAID Black Dark (#090B09)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.