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

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

Current version of the Dialog
  • Added component to design system.

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

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

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 …

Outline