Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Dialog

Dialogs are a type of modal used to convey information, often requiring users to make a decision by interacting with an overlay window.

  • Overview
  • Specs
  • Guidelines
  • Mobile

Pattern

Dialog modals are small overlay windows primarily used to display information. Since they disable the background interface, they are an effective way of ensuring that users receive important details about their current task. Additionally, they can be used to confirm actions.

Dialog anatomy
  • 1: Title
  • 2: Accent Icon
  • 3: Action Button
Small Dialog – Confirmation of destructive action

Used for:

Confirm destructive actions

Dialogs are used to confirm critical actions, such as deletions or submissions, where irreversible changes occur.

Focus on critical information

Dialogs draw attention to essential information or actions that require user acknowledgment or response. By temporarily blocking the background, they ensure the user focuses on the task at hand.

Onboarding or tutorials

Use dialogs to guide new users through important features or processes in an application. This can help improve the onboarding experience.

Don’t use for:

Critical navigation

If users need to navigate quickly between different parts of an application, dialogs can hinder this by blocking access to the rest of the interface.

Non-critical content

Dialogs are not used for content that isn’t crucial or time-sensitive. Information that can be presented inline or on a separate page is better suited outside of a dialog.

Blocking actions

The use of dialogs that prevent users from accessing essential actions or information needed to complete their current task should be avoided. This can create frustration and disrupt the workflow.

Small Dialog – Error message

Glossary

If you’d like, you can consult the dialogs glossary, which contains a set of dialogs, their description, associated buttons and translation into Portuguese and Spanish.

Demo

Access the Figma file and inspect the element using Dev Mode.

Dialog in Figma

Last Update

Image showing the desktop version of the Dialog.
Desktop version of the Dialog
Image showing the mobile version of the Dialog.
Mobile version of the Dialog
  • Added new tab for the mobile version of the pattern.

Related

Accent Icons

Accent Icons in UX serve as graphical representations of concepts, actions, or objects, enhancing user understanding and interaction within digital …

Variations

Device

Desktop
Deskop
.desktop {
  width: 576px;
  padding: var(--spacing-16, --spacing-24);
  header {
    title: var(--Heading-H6);
    title_color: var(--grey-9);
  }
  content{
    gap_top: var(--spacing-8);
    gap_bottom: var(--spacing-16);
    accent_icon: 64px;
    description: var(--body-1);
    gap: var(--spacing-16);
  }
  footer {
    gap: var(--spacing-16);
    button_1: var(--primary-theme-regular);
    button_2: var(--textButton-grey-regular);
  }
  shadow: var(--shadow-tertiary);
  
}
Mobile
Mobile
.mobile {
  width: 398px;
  padding: var(--spacing-16, --spacing-24);
  header {
    title: var(--Heading-H6);
    title_color: var(--grey-9);
  }
  content{
    gap_top: var(--spacing-8);
    gap_bottom: var(--spacing-16);
    accent_icon: 64px;
    description: var(--body-1);
    gap: var(--spacing-16);
  }
  footer {
    gap: var(--spacing-16);
    button_1: var(--primary-theme-regular);
    button_2: var(--textButton-grey-regular);
  }
  shadow: var(--shadow-tertiary);
  
}

Useful links

guidelines figma accent icon

Consult our Figma file to access our assets and inspect them in dev mode.

polygon-framework

This component is or will be provided by the Polygon framework. See its documentation to learn more.

This element is in line with the guidelines of the CDS (Cegid Design System). Find out more.

Size

Unlike other modals, the primary function of dialogues is to provide information in short sentences. Therefore they always have a small size.

A width of 40% with a maximum height of 80% is ideal for informative dialogs with little information or with confirmation of actions.

Dialog – Confirmation of destructive action

Care must be taken when using a dialog on top of another overlay window. They can be used when discarding edits or creating entities/items.

Since dialogs are used to provide critical information, they should not be designed with a close icon. Instead, add a close or cancel button.

Position

Desktop

When designing dialogs, it’s essential to consider the device and the context in which they appear to optimize user experience.

On desktop interfaces, dialogs are typically placed at the top or center of the screen, drawing immediate attention to the content without obstructing the user’s view. This central positioning helps to ensure that users focus on the content of the dialog, especially when the screen real estate is large.

Centered Dialog

Mobile (responsive)

On mobile devices, the dialog positioning strategy differs from that used on the desktop, due to the smaller screen size and user interaction patterns. On mobile devices, dialogs often appear at the bottom or center of the screen, with bottom positioning being particularly suitable for confirmation dialogs.

This approach takes advantage of the ease of thumb reach, allowing users to access buttons and make quick decisions with minimal effort. By adapting dialog placement to the device and user context, designers can enhance accessibility and usability across platforms.

Dialog Position – Delete

Variations

Checkbox

A Checkbox has been added to the dialog pattern to confirm destructive changes, and therefore, it only applies to the error and warning states.

In certain cases, this Checkbox may have multiple lines, so we need additional space for it. For this reason, the Checkbox is inserted after the dialog description.

For mobile responsiveness, an extra padding has been added to increase the touch area of the actual Checkbox.



Dialog with checkbox applied in desktop view
Dialog with a Checkbox applied in desktop view
Dialog with checkbox applied in mobile view
Dialog with a Checkbox applied in mobile view

In the responsive version, make sure that the Checkbox follows the alignment of the content.

The Checkbox must not be checked by default.

Only use the Checkbox for important destructive actions.

Use in modal success information contexts


Case Studies

Usage of overlay types within a product

Explore the usage of overlays like modals and flyouts within a product, and learn how they enhance user interaction …

What Changes?

The component has received some significant changes to its appearance to make it more suitable for small screens. It doesn’t use decorative elements (such as the Accent Icons) and the Buttons use their text variations, resulting in a very compact design.

They are also designed to be placed in the center of the screen, ensuring maximum visibility. If you want to place them at the bottom to improve user flow (or if you simply need to add more than two actions), consider using a Modal.

This is the extension of the Dialog changes. The remaining functionalities, use cases and guidelines are identical in both versions.

GIF comparing the desktop and mobile versions of the Dialog.
Comparison between desktop and mobile Dialogs

Demo

Access the Figma file and inspect the element using Dev Mode.

Image showing the Dialog pattern in Figma.
Dialog in Figma

Case Studies

Why Web Accessibility Matters - And How to Start

Why Web Accessibility Matters – And How to Start

Web accessibility is about designing inclusive digital experiences that benefit everyone, guided by four key principles and driven by the …
Writing for Everyone

Writing for Everyone: Every Word Counts in Accessibility

Writing for everyone is an essential part of any digital product. It can and does make a big difference to …

Release v1.4

Overview Compose Design has recently undergone some important updates, which means it’s time for another release note. In addition to …

Outline