Is documented
The component is fully documented
Modals are disruptive overlays that block the page’s content until action is taken or the modal is dismissed. They should be used thoughtfully and sparingly.
The header comprises of 3 elements:
Modal header variants
The body of a modal changes based on the modal use case, but can include:
Common modal body examples
Below are some presets for common modals found in the product. These can be quickly interchanged using the component properties panel in Figma.
The footer comprises up to 3 action buttons that are aligned to the right. By default, all modals have:
Modal footer variants
A modal can include a confirmation banner that slides from the bottom in situations where a complex form or process has been started in the modal. This will alert the marketer to either continue editing or discard the changes. There are some occasions where an action taken within a modal may prompt an additional confirmation. This is a solution to prevent stacking a confirmation modal on top of an addtional modal.
There are 4 variants of the modal
Modifying the modal variant using the Figma component property panel.
Modals are generally used for two reasons:
Creation
Copy
Deletion/Archiving
Warning
Unsaved changes
Unsaved changes modals follow this formula:
Marketers can't interact with the rest of the page until the modal is closed. To ensure Iterable supports both mouse and keyboard interactions, a modal can be dismissed by:
Is documented
The component is fully documented
Accessibile
Tested against WCAG 2.1 AAA accessibility guidelines
Tokens
This component uses tokens in both Figma and code
Figma component
Includes a link to a Figma component that has been imported to Supernova
Storybook
Includes a link to an external code repository
Status
The component has a health status indicated