Announcement
On this page
Style
An announcement is a layout with various slots for content and images. Inline or background images may be included depending on the message or campaign.
Anatomy
- Background image
- Inline image
- Body text
- Call to action
- Close button
Theme
An announcement is available in both light and dark themes.
Light theme
Dark theme
Changing the background color
An announcement background color can be changed, but ensure accessibility guidelines like color contrast are maintained.
Icons
An announcement uses our Icon element and one icon from our repo.
Icon preview | Icon name | HTML code |
---|---|---|
close | <rh-icon set="microns" icon="close"></rh-icon> |
Configuration
You may use the inline image slot two different ways within an announcement.
- If you are using an inline image like a logo or icon, it has a max height of 48px
- If you are using a more horizontal text logo, it should be around 20px - 25px tall
Space
Interaction states
Refer to these documentation pages for interaction states.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.
Other libraries
To learn more about our other libraries, visit the getting started page.