Alert
A 1- or 2-sentence message of warning, error, success, or information for the user.
Default alert orc-c-alert
A 1- or 2-sentence message of warning, error, success, or information for the user.
Error alert orc-c-alert--error
Applies a reddish background and error icon.
Warning alert orc-c-alert--warning
Applies a yellow background and warning icon.
Success alert orc-c-alert--success
Applies a green background and checkmark icon.
Usage
When to use
Use in any case when there is critical information for the user, such as the confirmation of an updated profile or issues with their account that need to be addressed.
When to consider an alternative
Many error messages can be addressed within the component that the user is interacting with, such as a select field or text field. If those errors can be addressed there, it’s preferable to using an alert that may get the user overly concerned.
Class Name | Description |
---|---|
Required
|
Apply to the alert’s containing HTML element. This provides the general layout of the alert component and uses modifiers to change styles like the background and text color. |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
JS
|
Apply in addition to the |
Required
|
Apply to the inner |
Required
|
Apply in addition to |
Required
|
Apply to the |
Required
|
Apply to the |
Required
|
Apply in addition to the |
|
Container that is used to help layout the alert close button. |
|
Apply to the |
JS
|
Apply to the |