Alerts
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Examples
Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use
one of the eight required contextual classes (e.g., .alert.primary
). For
inline dismissal, use the alerts jQuery plugin.
.alert.primary
.alert.secondary
.alert.red
.alert.green
.alert.blue
.alert.yellow
.alert.white
.alert.black
Conveying meaning to assistive technologies
Using color to add meaning only provides a visual indication, which will not be conveyed to users of
assistive technologies – such as screen readers. Ensure that information denoted by the color is either
obvious from the content itself (e.g. the visible text), or is included through alternative means, such
as additional text hidden with the .sr-only
class.
Link color
Use the .alert-link
utility class to quickly provide matching colored links within any alert.
.alert.primary .alert-link
.alert.secondary .alert-link
.alert.red .alert-link
.alert.green .alert-link
.alert.blue .alert-link
.alert.yellow .alert-link
.alert.white .alert-link
.alert.black .alert-link