Message Bar
A dismissible full-width bar for time-sensitive messages, campaigns, and offers.
@volvo-cars/css v3.3.1@volvo-cars/react-messages v0.5.4
When to use
Section titled “When to use”- Promote a time-sensitive campaign or offer in a short, full-width strip, usually at the top of a page.
- Give users one clear link to the campaign landing page, with an option to dismiss the message.
When not to use
Section titled “When not to use”- The message needs an image, a video, a heading or more than two lines of text. Use a banner instead.
- The message is about the status of a task, such as an error or a confirmation. Use an inline message or a toast message instead.
- The message is a form submit error. Use an inline message next to the field or form instead.
How to use
Section titled “How to use”Use Message Bar to promote time-sensitive campaigns and offers.
- Keep the
descriptionconcise and scannable.lgand above: max 1 linemdand below: max 2 lines
- Provide one clear
actionlink that takes the user to the campaign landing page. - Use one primary link only (avoid secondary actions).
- Responsive behavior:
- On
smandmd,descriptionandactionstack vertically. - On
lgand above,descriptionandactionsit on the same row.
- On

Example of a Message Bar.
Message Bar uses neutral background with inverted foreground for both description text and link label.
Color mode
Section titled “Color mode”
Message Bar in a light-mode layout.

Message Bar in a dark-mode layout.
Target size
Section titled “Target size”
The action link uses a 40px target size.
Spacing
Section titled “Spacing”

lgand above: 16px horizontal spacer betweendescriptionandaction.mdand below: 8px vertical spacer betweendescriptionandaction.
Examples
Section titled “Examples”
Campaign / offer promotion.
Considerations
Section titled “Considerations”Content
Section titled “Content”Keep the description scannable (aim for 1 line on lg+, max 2 on md and below). Use one clear action label that describes what happens next.

Do use a concise description and a clear action label (“View offers”, “Learn more”, “Book service”).

Don’t write a long, multi-topic description or use vague CTAs that don’t say what happens next.