Skip to content

Message Bar

Edit on GitHub
@volvo-cars/css v2.3.0

Message Bar highlights time-sensitive campaigns and offers with a brief, easy-to-scan message and a prominent link.

Use Message Bar to promote time-sensitive campaigns and offers.

  • Keep the description concise and scannable.
    • lg and above: max 1 line
    • md and below: max 2 lines
  • Provide one clear action link that takes the user to the campaign landing page.
  • Use one primary link only (avoid secondary actions).
  • Responsive behavior:
    • On sm and md, description and action stack vertically.
    • On lg and above, description and action sit on the same row.

Example of a Message Bar

Example of a Message Bar.

Message Bar uses neutral background with inverted foreground for both description text and link label.

Message Bar in light mode

Message Bar in a light-mode layout.

Message Bar in dark mode

Message Bar in a dark-mode layout.

Link action target size

The action link uses a 40px target size.

Message Bar spacing on large screens

Message Bar spacing on small screens

  • lg and above: 16px horizontal spacer between description and action.
  • md and below: 8px vertical spacer between description and action.

Campaign offer example

Campaign / offer promotion.

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.

Concise description with clear action

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

Long description with vague action

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