Modals

Modals are components that take focus and overlay on top of other content on the page. Modals are used to get user attention for important notices, to request user input or decisions, and in situations where the user is required to interact before continuing. Both the modal and alert dialog components are modal dialogs: they interrupt interactions with the rest of the page, whereas non-modal dialog boxes allow users to interact with other parts of the page.

On this page

Anatomy

Modal

Modal Usage Modal
Sub-ComponentDefinitionRequired
Modal HeaderDisplays the title of the filter. Label best practice.
The modal header is required. The background tint is optional.
Modal HeadingA descriptive label for the category of the listOptional
ContainerCard container of the alert dialog that contains its elements.Yes
Modal FooterFooter is pinned to the bottom of the modal, often used to display actions depending on the use case.Yes
Button GroupButton layout consists of 4 options: left & right split, centered; form left aligned; form right alignedOptional
Close Icon ButtonProvides users options to be able to close the modalYes
Replace Me ContentOnce you create your content, you can insert it via component swapYes
DividerLabel divider provides users the visual separation between content and call to actions in footerOptional

Alert Dialog

Modal Usage Modal
Sub-ComponentDefinitionRequired
Modal HeadingA descriptive labelYes
ContainerCard container of the alert dialog that contains its elements.Yes
Modal FooterFooter is pinned to the bottom of the modal for consistent usability, consistency, and accessibility.Yes
Button GroupButton layout supports one layout option.
Primary and secondary actions are both required.
Yes
Body textSupportive text, approximately 20 characters or less.Optional
DividerDivider provides users the visual separation between content and call to actions in footerOptional
IconContextually relevant icon that assists user, ideally has consistent meaning across all our markets.
Decorative icons must include alt text within the component configuration.
Optional

Scrim

Modal Usage Modal
ComponentDefinitionRequired
BackgroundWhen a Modal or Alert Dialog pops up, a scrim is used to dim the background area behind it.Yes

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.