Popovers

This component is a pop-up box that appears when the user hovers over an element.


General information#

  • It appears on click for mobile devices.
  • To hide the pop-up box, the user simply clicks anywhere on the screen except for the popover itself.
  • It is only displayed on demand and helps the user with additional detailed content, for example, important secondary information that are contextual.

Recommendations#

  • Rather use a short text in a popover than an image.
  • Use a popover to help the user complete tasks such as the ordering process or filling out a form.

Overall styling#

  • The text-style is small.
  • The line-height is set to default.
  • The font-color is basic-black.
  • The background color is basic-white.
  • The outline color is gray-light.
  • The border has a thickness of 1px.
  • It uses the shadow-default.
  • The height and width depends on the content.
  • The arrow on the popover can be set to different positions.

Variants#

Top#

  • The arrow pointing to a component is at the top.
VersionPreview
lefttop-left
centertop-center
righttop-right

Bottom#

  • The arrow pointing to a component is at the bottom.
VersionPreview
lefttop-left
centertop-center
righttop-right

Left#

  • The arrow pointing to a component is on the left side.
VersionPreview
toptop-left
centertop-center
bottomtop-right

Right#

  • The arrow pointing to a component is on the right side.
VersionPreview
toptop-left
centertop-center
bottomtop-right

Spacing & measurements#

TypesAttributesPreview
Horizontal spacingpadding: 16pxHorizontal spacing
Vertical spacingpadding: 16pxVertical spacing
Arrow sizewidth: 16px
height: 8px
Arrow size
 Offset distance: 2px Offset: icon
Offset: component

What can be modified?#

  • Override the text.
  • Modify popovers by changing the colors of background, outline and text to corresponding additional colors (i.e. like danger, success, info, …).

Our workflow in Sketch#

  • Use the „Overrides“-function to select the required variant and to edit the content.

Change log#

Changed#

  • Doc: "Popover" | Clean up the documentation for the right structure and sentence case

Changed#

  • "Popover" | Changed symbols: with layer-style settings