Skip to content

Modal

Modal helps to focus the user’s attention on one task or piece of information via a window that sits on top of the page content.

The dialog sits in the center of the screen. Once a scrollbar appears in the advanced layout, the content keeps the same inset as without it.

Values from @sbks/ds-modal@5.1.16
PartPropertyToken
DialogMinimum width420px
DialogCorner radius--border-radius-large
BodyGap between blocks--space-4
Advanced headerPaddingvar(--space-5) var(--space-6)
Advanced bodyPadding--space-6
Advanced bodyPadding with a scrollbar--space-6

In the advanced layout, the scrollable body has its own background on top of the dialog background.

Values from @sbks/ds-modal@5.1.16
PartPropertyToken
DialogBackground--color-layer-level-1
DividersBorder1px solid var(--color-border-primary)
Advanced headerText--color-on-layer-primary
Advanced bodyBackground--color-layer-level-0