Alert
Variants
Section titled “Variants”alert-ctas slot
Alignment
Section titled “Alignment”certara-alert
Section titled “certara-alert”Properties
Section titled “Properties”alignContent
| Attribute | align-content |
| Type | "center" | "left" | "right" |
| Default | 'left' |
| Required | false |
| Description | The content alignment inside the alert |
color
| Attribute | color |
| Type | "danger" | "info" | "success" | "warning" |
| Default | undefined |
| Required | false |
| Description | Sets the theme/color of the alert. Defaults to info. |
dismissible
| Attribute | dismissible |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the alert can be dismissed by clicking the close button |
headline
| Attribute | headline |
| Type | string |
| Default | undefined |
| Required | false |
| Description | The bolded first sentence of the alert |
shake
| Attribute | shake |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the alert will shake when it appears |
toast
| Attribute | toast |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Internal prop. If true, the alert will be displayed as a toast, fades and animates in, then typically disappears after a few seconds or is present until the user dismisses it. Preferable to use the certara-toast component instead |
variant
| Attribute | variant |
| Type | "danger" | "info" | "success" | "warning" |
| Default | undefined |
| Required | false |
| Description | Sets the theme/color of the alert. DEPRECATED. Use color instead. Will be removed in the next major version. |
Events
Section titled “Events”| Name | Description | Bubbles |
|---|---|---|
certaraClose | Event emitted when the alert is closed if dismissible is true | false |
Methods
Section titled “Methods”There are no public methods available for this component
| Name | Description |
|---|---|
| Default alert content | |
alert-ctas | Slot for additional call-to-action buttons or links |
Banner alerts inform users about important changes or persistent conditions in a prominent way. These alerts can be placed at the top of a page or on a particular section of a page.
Design guidelines
Section titled “Design guidelines”Variants
Section titled “Variants”Alignment
Section titled “Alignment”Animation
Section titled “Animation” In practice
Section titled “In practice”- The dismiss (X) option allows users to close a system alert which removes it from the page. Alerts should be dismissible unless they contain critical information or an important action step.
- DO NOT include the dismiss option on Danger alerts.
- If the dismiss option is included and there is no action available to take, do not include a button labeled “Close” or “Cancel”.
Variants
Section titled “Variants”The four variants use different icons and colors to indicate the type and urgency of the message.
Info: informs the user of a change or gives them advice. Success: lets the user know of a successful outcome. NOTE: Toast alerts are used by default for this type of messaging. Use a banner alert only if it is persistent, delayed, or if there is an additional action. Warning: lets the user know about important system information that deserves caution. Danger: alerts the user of a problem that requires immediate attention.
Placement
Section titled “Placement”- If the message relates to the page topic as a whole, place the alert at the top of the page.
- If the message is specific to a section of the page, place the alert below the section header.
- Banner alerts always span the full width of the container to which they apply.
Content guidelines
Section titled “Content guidelines”- Use plain English instead of obscure codes or abbreviations.
- Follow the content guidelines for headings and subheadings. View guidelines
- Be concise: keep content to 1 to 2 sentences where possible
- Clarify the benefit of the main task
- Be written in sentence case and use appropriate punctuation
- Avoid repeating the heading
- Explain how to resolve the issue, particularly for warning and critical banners
Accessibility
Section titled “Accessibility”Keyboard focus: When an urgent alert is dynamically added to the page, ensure its content receives immediate attention.
Follow the accessibility guidelines for each component found in the alert. View guidelines