Standard dialog

v3.0

Standard dialogs focus the user’s attention on a specific piece of content or task.

Stylized graphic of a set of dialogs.

Anatomy

A standard dialog with 8 elements numbered: 1. Container, 2. Header, 3. Title, 4. Subtile (optional), 5. Content area, 6. Footer buttons, 7. Close button, 8. Scrim
  1. Container
  2. Header
  3. Title
  4. Subtitle (optional)
  5. Content area
  6. Footer buttons
  7. Close button
  8. Scrim

Properties

Header

The header contains the dialog toolbar. In the default layout, the toolbar is opaque and displays the title. In the layouts with a hero image or multiple columns, the toolbar is transparent and the title and subtitle move into the content area instead.

A header of the standard dialog showing a title and close button.

Hero image

Optional. Use a hero image to set visual context or reinforce the topic of the dialog. The hero image moves the title and subtitle below it, to the content area, and increases the overall padding of the dialog.

Dialogs with different header container layouts. The left dialog shows a header container with an image and title below the image. The right dialog shows a simple header with a title.

Title

Required. The title orients the user to the purpose of the dialog, such as what they need to decide, learn, or acknowledge.

  • Use sentence case
  • No ending punctuation
  • Keep to 1 line
  • End with a question mark when the title is phrased as a question
A standard dialog with a title of “become a seller”.

Subtitle

Optional. The subtitle adds context that helps users understand what's happening and what to do next. For educational and informational dialogs, focus on the key benefit or outcome instead of the mechanics.

  • Use sentence case
  • Use ending punctuation
  • Keep to 1–3 sentences
  • Don't repeat the title
A standard dialog with a subtitle of “sign up as a seller to reach millions of potential customers around the globe.”

Content area

The content area is a flexible layout that can contain any components, such as lists, forms, or notices. Follow the guidelines for any components placed inside it. Keep content focused on a single task or topic.

Two standard dialogs. One showing an image on top and copy on bottom in the content area. The second using list rows in the content area.

Footer

A consistent, fixed container for the dialog's actions. The primary action is aligned along the trailing edge of the container followed by any secondary or tertiary actions.

Button

The primary action completes the task or advances to the next step. The secondary action provides an alternative action or cancels it. The tertiary action provides an additional action. Strong button labels clearly indicate each action and outcome.

Note: Consider using a text link within the body copy before adding a third button.

  • Use sentence case
  • Keep to 1-3 words
  • Start with an action verb

See Buttons for more details on visual hierarchy and writing guidance.

A standard dialog with two buttons in the footer. The primary button reads “send code”, the tertiary button reads “cancel”.

Container

The dialog container is an elevated, modal surface bounding all of its content and actions.

A standard dialog container showing a elevated, modal surface.

Scrim

The scrim is a semi-transparent overlay that blocks interactions with the primary surface and visually separates the dialog from the page content below.

All standard dialogs are modal, so the scrim is automatically applied. Learn more about scrim tokens.

Standard dialog over a scrim that darkens and separates the dialog from the elements behind it.

Position

The dialog container can align to the center or trailing edge of the screen. The default position is centered.

Use the trailing position for a side panel look when referencing the primary page content is important.

Two standard dialog containers. The first is aligned to the center or trailing edge of the screen. The second is showing the trailing position for a side panel.

Behavior

Presentation

Dialogs use a scale and fade transition when entering and exiting. The dialog rests in the center on large screens and along the bottom on smaller screens.

A dialog box with a title of “the fastest way to list.” The subtitle reads “Reselling is simple, sustainable, and free. 
You keep 100% of the sale price.” The content area has a title of “how it works” and 3 numbered entries. The legal copy reads “free selling excludes Vehicles and business sellers”. The footer has a primary CTA button with copy of “got it”.

Scrolling

Content that flows beyond the container’s bounds will scroll within the content area. The header and footer are pinned above the content area and all content scrolls beneath.

Keep scrolling within dialogs to a minimum. Navigate to a new page if content extends far beyond the bounds of the dialog container.

A dialog box with a title of “review offer”. The subtitle reads “when your offer is accepted, we’ll use your selected payment method to process your order.” The content area has 5 list rows with titles of “pay with”, “currency”, “delivery”, “ship to” and discounts”. The list row content scrolls beyond the container’s bounds. The footer has two CTAs, a primary CTA readying “send offer”, and a tertiary CTA that reads “edit offer”.

Dismissing

Dialogs are either completed, canceled, or closed. Pressing the escape key on a keyboard or interacting with the scrim registers as a cancel or close button.

A dialog box with a close button in the upper right.

Button overflow

Dialog footer buttons stack vertically when the footer is too narrow.

Keep button titles short and only show buttons that aid in completing the action or canceling the task. Don’t add links to the footer. Instead, add links to the body content or provide the links on the primary page surface.

Two buttons stacked in the footer on a small screen. The top primary button reads “send” and the tertiary button sits below and reads “cancel”.

Title overflow

The title and subtitle wrap to a new line when wider than the available space. The width of the text box leaves room for the close button and text doesn’t extend below the button.

The close button aligns in the center to the top line of the title.

A title that wraps to 2 lines on a small screen. The title reads “how should we contact you?”.

Navigating views

Because dialogs focus on a single task, navigating or loading additional views should be used sparingly. For cases that require additional steps, use the footer buttons to navigate forward and backward.

For multi-step tasks or tasks that include a variety of input types, use a new page instead.

A standard dialog with two CTA buttons in the footer. The primary CTA reads “send offer”. The tertiary CTA reads “edit offer”.

The content within the dialog is replaced when transitioning to a new view. This also applies when navigating back.

If additional content renders into a view, like an error message, the container can animate to adjust for the additional height up to its maximum relative height.

A standard dialog with a title of “add address” and fields with entries for full name, country or region, street address, apt/suite, unit/floor/etc. (optional), city, state/province, zip code and phone number. There is a checkbox under the address fields that reads “set as default”. The primary CTA in the footer reads “save”.

Platforms

Native apps

The native Android and iOS apps use a Focus sheet instead of a dialog.

Screen sizes

Small screen

Standard dialogs are aligned to the bottom on smaller screens to improve ergonomics of the footer buttons. They extend to the maximum screen height when the content requires it.

A standard dialog aligned to the bottom of a small a screen.

Large screen

Standard dialogs are centered on larger screens.

A standard dialog centered on a large screen.

Best practices

Stacking

Dialogs lie above all main page content.

A standard dialog laying above the main page content with a scrim layer underneath.

Dialogs should not trigger other dialogs. This quickly becomes inaccessible. Links within modals should open in a new tab or dismiss the modal before navigating.

A standard dialog laying above the main page content with a second dialog is triggered above.

Scope

Focus the content on a single task with direct interactions and decisions. Use simple inputs like form fields and selection controls.

A standard dialog with a title of “place bid” and single task of placing “your max bid”.

Don’t use a dialog when the content requires multiple complex decisions and input types. Navigate to a page instead.

A standard dialog with a list of sellers.

Using 3 CTAs

All three buttons are aligned to the right side of the dialog. Only the outmost right button is allowed to be a primary button with the other two being secondary buttons.

Three buttons located in the footer. The primary button is aligned to the right side of the dialog.

The primary button must be the outmost right button. The other buttons must be styled as “tertiary”, black outline.

Three buttons located in the footer. The primary button is aligned to the left side of the dialog.

Specs

A spec for a dialog container. The container has 16px of padding on all sides. The header area contains a title and a 32px close icon button with 16px of padding between it and the content area. A full-width divider line with 16px of padding above and below it sits below the content area, followed by a pair of CTA buttons that are anchored to the bottom right.