Structure

A section message displays a contextual feedback message in a particular section of the page. They’re persistent and nonmodal. It can include a ‘close’ button to be dismissed, allowing the user to either ignore them or interact with them at any time.

section message structure

Anatony

  • Icon: The icon and section colour pairing signifies the message type and is available in pre-defined styles for each message type.
  • Title: The title should be a clear and concise representation of the message's purpose.
  • Description: This should detail the message and any necessary actions for the user to take, if any. The message should remain as brief as possible.
  • Actions (optional): One or more buttons that allows the user to take action.
  • Close (optional): A button situated in the top-right corner that lets users dismiss the message.

Paddings and margins

section message paddings and margins

ComponentThemeAppearanceSizeisRounded
‘Close’ Action iconneutralsimplesmno
Property & elementTokenpxrem
Padding containerspace $416px1
Action Icon margin leftspace $28px0.5
Action icon margin top/right/bottomspace $2-8px0.5
Corner radius containerradii $04px0.25

section message buttons

Property & elementTokenpxrem
Margin-left actionsspace $28px0.5

Property & elementTokenpxrem
Margin-right Iconspace $28px0.5
Margin-bottom titlespace $28px0.5
Margin-top Actionsspace $416px1
Margin between actionsspace $416px1

Typography

section message margins

ElementFamilyWeightSizeRempx
Title$body600$sm0.75rem12
Body text$body400$md0.875rem14

Color

section message color

Property & Element - StateTokenHex
All variants - border$white#
All variants - description text$grey900#
Info - icon/title$blue1000#
Info - background$blue100#
Success - icon/title$successDark#
Success - background$successLight#
Error - icon/title$dangerDark#
Error - background$dangerLight#
Warning - icon$warningDark#
Warning - title$warningText#
Warning - background$warningLight#
Neutral/help - icon/title$grey900#
Neutral/help - background$grey100#