Skip to main content

Alerts IconAlerts

Notifications for important messages.

Overview

Alerts are used to inform users about important information, warnings, or errors. They are designed to capture the user's attention and provide actionable feedback. This documentation covers the anatomy, variations, and accessibility considerations for the alerts component.

Anatomy

Alert Anatomy
  1. Warning Icon: An icon indicating the type of alert (default, warning, danger).
  2. Heading: A brief title summarizing the alert.
  3. Description: Detailed information about the alert.
  4. Button Group: A set of buttons for user actions related to the alert.
  5. Close Icon: An icon to dismiss the alert.

Variations

Alert Anatomy

Default Alert

Info: Shows general information or notifications. Neutral color scheme (primary) with a standard warning icon.

View Code Bitbucket Repo
Alert Anatomy

Warning Alert

Info: Alerts that require user attention but are not critical. Yellow color scheme with a warning icon.

View Code Bitbucket Repo
Alert Anatomy

Danger Alert

Info: Critical alerts that require immediate user action. Red color scheme with a danger icon.

View Code Bitbucket Repo
Alert Anatomy

Optional Elements

Info: An alert may contain a user's name, date and time and checklist.

View Code Bitbucket Repo

Accessibility

  • Ensure all alert elements are keyboard accessible.
  • Provide ARIA roles and properties for alerts (e.g., role="alert").
  • Ensure sufficient color contrast for text and icons.
  • Use descriptive labels for icons and buttons.
  • Implement screen reader support for alert content.
  • Ensure alerts are dismissible for users who rely on assistive technologies.

Support

If you have any questions about our design system, please contact Stephen McGhee at: stephen.mcghee@ipacconsulting.com