Alert
Design Complete IMPLEMENTATION PENDING
The Alert component displays a short, important message in a way that attracts the user's attention. Alerts offer four severity levels that set a distinctive icon and color.
Contributors
Β
Related Jira Tickets
https://openedx.atlassian.net/browse/PAR-150
Β
Β
Β
Β
Resources
Variants
Four severity level variants set a distinctive icon and color.
The Stacked variant is for use with:
Sidebars or small containers
Extra-small breakpoint and below
Β | Variants |
---|---|
Severity levels |
|
Layout | Default, Stacked |
Β
Β
Best Practices
Do | Use the Stacked variant in sidebars Use the Stacked variant at the extra-small breakpoint and smaller Make all banners dismissible, unless they contain critical information or an important action that users are required to take |
Don't | Do not place an icon in the Info variant Alert banners should never grow larger than outer max-width |
Related Components
Β
Specification
Β
Behaviors
Accessibility
Focus Management Expectations | β¨ |
Semantics | 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Β |
Β
Β