Modal
Last Updated on Sep 29, 2022
Modals are containers used to overlay content above the interface. They are used to focus the user’s attention on a single task.
Component Variants
Design Principles
- A modal is a container that exists at a higher elevation than the rest of the content. It is a very flexible component. A variety of elements can exist inside.
- Use a modal to direct the user action or attention to a single critical task.
- Modals have three different widths (512px, 768px, and 1024px) that align to our layout design tokens. Don’t change the width of a modal from these sizes. Heights of modals can be variable depending on content.
- Simple multi-step processes are allowed in modals. They should use a horizontal stepper at the top and shouldn’t have more than a few steps. Use this only if it’s important the user stays on the current screen and the multi-step processes can be simply achieved in the modal. For more complicated multi-step processes use a report builder or form builder pattern.