EtherBrandGuidelinesFoundationsComponentsOverviewAccordionAlertAvatarBadgeButtonBreadcrumbsCalendarCardCarouselCheckboxDividerDropdownIconImageLinkListLoadingModalPaginationProgressRadioSelectSkeletonSwitchTabsText areaText fieldToastTooltip
Components

Modal

Blocking. Elevation 3. role="dialog" aria-modal="true".

Spec

Live demo

Runnable controls. Not a screenshot. Paper / Ink in the header recolors tokens.

Focus trap, Esc, one primary. Compact becomes a block-end sheet.

Do / Don't

DoDon't
Trap focus. Restore it.Open a second modal on top.
One primary in the footer.OK as the primary. Name the verb.
Sheet on compact.A 720px dialog on a phone canvas.

Motion

PropertyDurationEasingTriggerReduced motion
opacity + scale(0.98→1)280 / 160--ease-outopen / closeopacity only
translateY280 / 160--ease-outopen / closeopacity only

Accessibility

Related