Dialog

A modal dialog is a message box or child window that requires user interaction before returning to the parent window. These boxes appear on top of the open parent window that is currently displayed on the screen.

Specifications

Dialog design specifications
Dialog design specifications

Anatomy

Dialog anatomy
  1. 1.
    Dialog container
  2. 2.
    Title
  3. 3.
    Close action
  4. 4.
    Dialog actions
  5. 5.
    Content

Design tokens

Color

Component tokenElementCore tokenValue
overlayColorOverlaycolor-grey-800-a#000000b3
backgroundColorContainercolor-white#ffffff
boxShadowColorContainer shadowcolor-grey-300-a#00000033
closeIconColorIcon closecolor-black#000000
closeIconBackgroundColorIcon closecolor-transparenttransparent
closeIconBorderColorIcon close--

Typography

PropertyElementCore tokenValue
font-familyTitlefont-family-sans'Open Sans, sans-serif'
font-sizeTitlefont-scale-051.5rem / 24px
font-weightTitlefont-weight-semibold600

Border

Component tokenElementCore tokenValue
closeIconBorderThicknessIcon closeborder-width-00px
closeIconBorderStyleIcon closeborder-style-solidsolid
closeIconBorderRadiusIcon closeborder-radius-small0.125rem / 2px
PropertyElementCore tokenValue
border-widthContainerborder-width-00
border-styleContainerborder-style-nonenone
border-radiusContainerborder-radius-medium0.25rem / 4px

Spacing

PropertyElementCore tokenValue
margin-rightTitle iconspacing-120.75rem / 12px
margin-bottomTitlespacing-241.5rem / 24px

Size

PropertyElementCore tokenValue
min-widthContainer-696px
max-widthContainer-80%
widthClose action-24px
heightClose action-24px

Accessibility

WCAG

WAI-ARIA