CTA Banner
A CTA Banner displays prominent, actionable or informational content within a webpage using concise messaging to drive user engagement.
The CTA Banner is a prominent component designed to draw attention to important information or a primary action. It combines a clear headline, optional supporting text, an optional standard icon or image, and an optional interactive element (for example, a button or form input) into a visually distinct section that stands apart from surrounding content.
Examples
Text Only
Providing no modifiers to the bux-cta-banner class produces the default text-only variant.
With Icon
The --with-icon modifier displays a Standard icon from the DAM alongside the message.
With Form
The --with-form modifier includes a single interactive form input as the primary action.
With Image
The --with-image modifier displays a supporting image. Images crop to a 16 / 9 ratio, so it's best to provide an image with that aspect ratio.
Usage
Dos
- Use the CTA Banner to communicate high-priority information or reinforce primary actions (e.g., apply, register, contact).
- Keep messaging short, focused, and action-oriented.
- Use only one primary interactive element (e.g., a button or form field).
- Use an icon only if it is meaningful and supportive of the message. This component requires a Standard icon from the DAM, not a UI icon.
- Place it near the bottom of a page (just above the Site Footer) or after key content sections, where it can act as a natural point of interruption.
Don'ts
- Don't overuse banners, as this reduces their effectiveness and creates visual clutter; don't stack multiple banners unless absolutely necessary.
- Don't overload the banner with multiple paragraphs.
- Don't include more than one interactive element (e.g., a button or form field).
- Don't include an icon if it is not meaningful and supportive of the message.
- Don't place it at the very top of a page, because this component is intended to be secondary to the main content.
Implementation Notes
- Modifiers
- Providing no modifiers to the
bux-cta-bannerclass defaults to the text only variant. - Available modifiers are
--with-icon,--with-form, and--with-image.
- Providing no modifiers to the
- Image variant
- Images crop to a
16 / 9ratio, so it's best to provide an image with that aspect ratio.
- Images crop to a
- Icons
- Variants with icons use a
filterCSS property to invert the icon for dark mode.
- Variants with icons use a
Accessibility
- Keep the heading concise and descriptive so its purpose is clear when read out of context by assistive technology.
- Ensure any interactive element clearly communicates its purpose; the button or form label should make sense on its own.
- When using the icon variant, the icon is decorative and supportive of the text, so its
altattribute is intentionally left empty (alt="") to hide it from assistive technology. - When using the image variant, provide meaningful alt text that describes the image's content.