Alerts
Alerts are descriptive dialogs to clearly and concisely communicate success, informational, warning, and error content.
Types
Basic alert
Description alert
Dismissible description alert
Usage
Alerts can be used to bring attention to important changes, persistent conditions, unexpected failures or other relevant statuses.
Behavior
Alerts should be displayed within the appropriate context: at the top of the page or within the section to which they apply.
Visual style
Basic alert
Description alert
Editorial
- Use Title Case for short (~1 – 3 word) headlines
- Use Sentence case for longer headlines written as sentences (e.g. Claims are currently unavailable)
- Provide a CTA in the form of an in-line text link when necessary
Accessibility
Characteristics
- Static Text with potential for custom content
- Rendered on page load
- Types:
- Warning – System caution indicator
- Error – System error user needs to be aware of
- Information – General information alert
- Success – Data changes saved successfully
Keyboard/Focus Expectations
- Typically do not receive keyboard focus
- Typically not designed to interrupt workflow
- Exception: Alert Dialog, is designed to interrupt workflow requiring user response
Screen Reader Expectations
- Alert type is announced. Ex. “Warning! Claims made within the past 48 hours may not be visible at this time.”
- Alert message must be announced. Ex. “Error! Network cannot be reached.”