Skip to content

InlineMessage

Edit on GitHub
@volvo-cars/css v2.3.0@volvo-cars/react-messages v0.4.0

An inline message displays a prominent message and optionally a related action.

Used for critical error messages, notices and local campaigns.

Untitled.png

Showing: Inline message in neutral color with title and underlined link.

Untitled.png

Showing: Inline message in neutral color with title, description and underlined link.

Vertical message are used when more text is needed.

Untitled.png

Horizontal variant on wider areas such as full page width.

Untitled.png

Horizontal Inline Message will only remain horizontal as long as the content fits on a single line inside the container or viewport size. If it doesn’t, the content will wrap like in a Vertical Inline Message.

Inline message with neutral color is used for informational messages. Use neutral color for less emphasis and can be used on color backgrounds.

Untitled.png

Inline message with positive color is used for informational messages. Should not be used on color backgrounds.

Untitled.png

Inline message with caution color is used for negative messages. Should not be used on color backgrounds.

Untitled.png

Inline message with destructive color is used for critical error messages. Should not be used on color backgrounds.

Untitled.png

Untitled.png

Neutral colour on light mode

Untitled.png

Positive colour on light mode

Untitled.png

Caution colour on light mode

Untitled.png

Destructive colour on light mode

Untitled.png

Neutral colour on dark mode

Untitled.png

Positive colour on dark mode

Untitled.png

Caution colour on dark mode

Untitled.png

Destructive colour on dark mode

Title: Up to 1 lines of text

Description: Up to 1 lines of text

Underlined link: 25 char

Title: Up to 2 lines of text

Description: Up to 3 lines of text

Underlined link: 25 char

Untitled.png

Example: Inline message with neutral message.

Untitled.png

Example: Inline message with positive message.

Untitled.png

Example: Inline message with a cautionary warning message.

Untitled.png

Example: In-line message with a cautionary warning message.

Untitled.png

Example: Inline message with critical error message.

Longer Inline messages (with description) are recommended to be placed below a hero.

Untitled.png

Shorter Inline messages (without description) is recommended to be placed above hero. But can be placed below.

Untitled.png