Skip to content
Design System
  • Documentation
  • Prototypes
Branding
  • Voice & tone
  • Logo
  • Farben
  • Typographie
  • Visuelle Elemente
Foundations
  • Usage
  • Global styles
  • Themes
  • Spacing
  • Viewports
  • Colors
  • Typography
  • Core utilities
Layouts
  • Usage
  • Aspect ratio
  • Auto grid
  • Content grid
  • Flex group
  • Flow
  • Multicol
  • Pile
  • Reel
  • Region
  • Repel
  • Sidebar
  • Switcher
  • Wrapper
Patterns
  • Accordion
  • Avatar
  • Avatar Group
  • Book pile
  • Brand shapes
  • Button
  • Calendar Date
  • Callout
  • Card
  • Context Switcher
  • Figure
  • Forms
  • Hero
  • Icon
  • Icon link
  • Image Bento
  • Image Grid
  • List Icon
  • Marquee
  • Modal
  • More Link
  • Pagination
  • Pill
  • Promo Card
  • Prose
  • Section Divider
  • Section Heading
  • Section Illustration
  • Show More
  • Slideout
  • Submenu bar
  • Table
  • Tabs

Modal Beta

A default modal dialogue box with the option for light dimissal.

A modal dialog can have up to three content areas: a header, a content area, and a footer. Content should be placed in the content area by default. You can add a header and a footer if needed.

Configuration #

PropertyDefault valueDescription
--modal-max-widthvar(–content-max-width)Sets the maximum width of the modal minus some padding to the side.
View full screen

To prevent interaction with elements behind the modal, modals should be opened with the showModal() function. Add the light dismissal behaviour by adding the closedBy attribute to the dialog element.

Requiring user action #

View full screen

Modal sizing #

VariantsDescription
data-modal-size="wrapper"Sets the maximum width of the modal to the width of the wrapper.
View full screen

Modal alignment #

VariantsDescription
data-modal-alignment="top"Sticks the modal to the top of the screen.
data-modal-alignment="bottom"Sticks the modal to the bottom of the screen.
View full screen

Modals with promotional content #

These examples show how existing promotions can be implemented with this component.

View full screen
Theme