Search
MaterialComponentsDocs
Components overviewApp barBadgeButtonsButton groupButtonExtended FABFAB menuFABIcon buttonSplit buttonCardCarouselCheckboxChipsDate & time pickersDate pickerTime pickerDialogDividerListLoading & progressLoading indicatorProgressMenuNavigationNavigation barNavigation drawerNavigation railRadio buttonsSearchSelectSheetsBottom sheetSide sheetSliderSnackbarSwitchTabsText fieldToolbarTooltip

Dialog

Focus on a decision. Open a dialog to try its content, actions, and dismissal behavior.

FactoryWeb ComponentsReactVueSvelteSolidJS

Accessibility

  • An alertdialog, or a dialog at fullscreen, with aria-modal. The role follows M3: "On web, basic dialogs should have the alert dialog role" (M3 dialogs accessibility). A full-screen dialog holds a task rather than a prompt, so it is a plain dialog; role overrides either. The title names it (aria-labelledby), or ariaLabel without one, and shows no tooltip; the content describes it.
  • Opening it focuses its first focusable element, or the dialog; closing it gives focus back. Tab stays inside it, and the page behind it is inert.
  • Escape and a click on the scrim close it, unless turned off. The close button is named "Close dialog".
  • Its motion is reduced to a fade under prefers-reduced-motion.