Contextual Menu

The Contextual menu is a powerful component that improves user experience by allowing users to navigate through page-level content or choose from a list of actions while complementing the general disposition of the main content within the interface.

Specifications

Contextual menu

Contextual Menu design specifications
Contextual menu specifications

Contextual menu item

Contextual menu item design specifications
Contextual menu item specifications

States

Contextual menu item states
Contextual menu item states

Anatomy

Contextual menu anatomy
  1. 1.
    Section title
  2. 2.
    Container
  3. 3.
    Badge
  4. 4.
    Menu item
  5. 5.
    Expand/collapse icon
  6. 6.
    Icon
  7. 7.
    Divider

Design tokens

Color

Component tokenElementCore tokenValue
backgroundColorContainercolor-white#ffffff
borderColorContainercolor-grey-200#e6e6e6
menuItemFontColorMenu itemcolor-grey-900#333333
hoverMenuItemBackgroundColorMenu item:hovercolor-grey-100#f2f2f2
activeMenuItemBackgroundColorMenu item:activecolor-grey-100#f2f2f2
selectedMenuItemBackgroundColorMenu item selectedcolor-purple-100#f2eafa
hoverSelectedMenuItemBackgroundColorMenu item:hover selectedcolor-purple-200#e5d5f6
activeSelectedMenuItemBackgroundColorMenu item:active selectedcolor-purple-200#e5d5f6
sectionTitleFontColorSection titlecolor-grey-900#333333
iconColorIconcolor-grey-900#333333

Iconography

Component tokenElementCore tokenValue
iconSizeIcon-16px

Typography

Component tokenElementCore tokenValue
fontFamilyContextual menufont-family-sans'Open Sans', sans-serif
menuItemFontSizeMenu itemfont-scale-020.875rem / 14px
menuItemFontStyleMenu itemfont-style-normalnormal
menuItemFontWeightMenu itemfont-weight-regular400
menuItemLineHeightMenu item-24px
selectedMenuItemFontWeightMenu item selectedfont-weight-semibold600
sectionTitleFontSizeSection titlefont-scale-031rem / 16px
sectionTitleFontStyleSection titlefont-style-normalnormal
sectionTitleFontWeightSection titlefont-weight-semibold600
sectionTitleLineHeightSection title-24px