A dialog is a modal window that appears in front of an app to display task information that requires an immediate user response.
A dialog can be an alert, which requires user interaction. It can also be a selection or confirmation dialog, which requires a user to make or confirm a choice. The dialog retains focus until it’s dismissed or the required action is taken. Because dialogs are interruptive, they should be used sparingly.
Dialogs are related to toasts (both are members of the Dialog family of components), but they differ in purpose and priority, as shown below.
Component | Purpose | Priority |
Toasts | Displays an informative message. Doesn’t require user interaction. Disappears after 8 seconds. | Low |
Dialog | Displays information and task options that require user interaction. A dialog retains focus until a user responds. | High |
Anatomy
Dialogs contain informational text and UI controls that request a user response.
![](https://developers.google.cn/cars/design/automotive-os/components/images/Dialog-Anatomy-new.png?authuser=9)
2. Card header
3. Content area
4. Card action area
Specs
Dialog without title
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-spec-3.png?authuser=9)
Dialog with title
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-spec-4.png?authuser=9)
Dialog with centered title
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-spec-5.png?authuser=9)
Scrollable dialog
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-spec-6.png?authuser=9)
Customization
OEMs can reflect their brand by customizing the following aspects of dialogs:
- Fonts
- Styling of active, inactive, and disabled buttons
- Button dimensions and placements
Design system provides guidance for customizing components using layout, color, typography, and sizing.
Examples
![](https://developers.google.cn/cars/design/automotive-os/components/images/Dialog-Mock-1-new.png?authuser=9)
![](https://developers.google.cn/cars/design/automotive-os/components/images/Dialog-Mock-2-new.png?authuser=9)
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-mock-3.png?authuser=9)
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-mock-4.png?authuser=9)
![](https://developers.google.cn/cars/design/automotive-os/components/images/dialog-animation-1.gif?authuser=9)