Alert

Alert messages are meant to provide contextual feedback about important changes in the interface.

Specifications

Alert design specifications
Alert design specifications

States

States for the close action of the alert component: enabled, hover, focus, and active.

Alert states
Alert states

Anatomy

Alert anatomy
  1. 1.
    Container
  2. 2.
    Icon
  3. 3.
    Title
  4. 4.
    Inline text
  5. 5.
    Close action
  6. 6.
    Content (Optional)

Design tokens

Color

Component tokenElementCore tokenValue
infoIconColorIconcolor-blue-800#0067b3
successIconColorIconcolor-green-700#24a148
warningIconColorIconcolor-yellow-700#c59f07
errorIconColorIconcolor-red-700#d0011b
infoBackgroundColorContainer backgroundcolor-blue-100#e6f4ff
successBackgroundColorContainer backgroundcolor-green-100#eafaef
warningBackgroundColorContainer backgroundcolor-yellow-100#fef9e6
errorBackgroundColorContainer backgroundcolor-red-100#ffe6e9
infoBorderColorContainer bordercolor-blue-800#0067b3
successBorderColorContainer bordercolor-green-700#24a148
warningBorderColorContainer bordercolor-yellow-700#c59f07
errorBorderColorContainer bordercolor-red-700#d0011b
titleFontColorTitlecolor-black#000000
inlineTextFontColorInline textcolor-black#000000
hoverActionBackgroundColorAction:hovercolor-grey-100-a#0000000d
activeActionBackgroundColorAction:activecolor-grey-200-a#0000001a
focusActionBorderColorAction:focuscolor-blue-600#0095ff
overlayColorOverlaycolor-grey-800-a#000000b3

Typography

Component tokenElementCore tokenValue
titleFontFamilyTitlefont-family-sans'Open Sans', sans-serif;
titleFontSizeTitlefont-scale-010.75rem / 12px
titleFontWeightTitlefont-bold600
inlineTextFontFamilyInline textfont-family-sans'Open Sans', sans-serif;
inlineTextFontSizeInline textfont-scale-010.75rem / 12px
inlineTextFontWeightInline textfont-regular400

Border

Component tokenElementCore tokenValue
borderRadiusContainer borderborder-radius-medium0.25rem / 4px
borderThicknessContainer borderborder-width-11px
borderStyleContainer borderborder-style-solidsolid

Spacing

Component tokenElementCore tokenValue
containerPaddingLeftContainerspacing-120.75rem / 12px
containerPaddingRightContainerspacing-120.75rem / 12px
iconMarginRightIconspacing-80.75rem / 12px
inlineTextPaddingLeftInline textspacing-80.5rem / 8px
titlePaddingLeftTitlespacing-80.5rem / 8px

Iconography

Component tokenElementCore tokenValue
iconSizeIcon-24x24px

Width

The alert component has a property that is customizable depending on the context and the scenario where the component is used. This property defines the size of the alert and it can get multiple values according to the needs of the application.

WidthValue
small280px
medium480px
large820px
fillParent-
fitContent-

Accessibility

WCWAG

WAI-ARIA