Announcement

An Announcement is a short banner that promotes an important message. It can be used across websites, depending on the relevance of the message and the target audience.

Example of an announcement banner

An announcement banner can be used in light, dark, and saturated themes. It can feature elements like text, a button, a call to action, icons, imagery, or a background container.

Anatomy of an announcement banner
Announcement banner on light theme
Announcement banner on dark theme

An announcement banner can promote a popular event or advertise an important organizational or product announcement.

Grid

An announcement banner doesn’t fall within the grid. It spans the entire width of a browser window on all screens whereas the content of the banner itself should fall within the standard grid.

Announcement banner spanning entire width of browser window

Layout

An announcement banner should be positioned above the navigation so it becomes the highest layout in hierarchy. It can also be used across different pages to better attract attention from visitors who might be coming from different places.

Announcement banner positioned above the main menu on Redhat.com

Content

Any content within an announcement banner can either be center-aligned or aligned to the left and right sides, depending on the amount of content and what its objective is.

One announcement banner showing center-aligned content and one showing left and right-aligned content

Don't position the announcement banner below the navigation.

Example of an announcement banner below the primary navigation

Persistence

An announcement banner sits above the navigation and can be sticky, but should not be visible on scroll if the navigation of the site is also in fixed position.


Breakpoints

An announcement banner works well across both large and small screens. The elements inside will stack in one column and become vertically-aligned on small screens.

Desktop

Example of an announcement banner on desktop

Tablet

Example of an announcement banner on tablet

Mobile

Example of an announcement banner on mobile

Some text styles reduce in size on small screens. Learn more about typography on mobile


Since announcement banners can consist of a variety of elements, refer to the specific interaction states that are assigned to each style and component for more information.


The announcement banner uses PatternFly 4 spacers to define spacing values between elements.

Example of an announcement banner with spacers

For feedback and bug reports concerning PatternFly Elements components, create an issue in the GitHub repository.