Modal

Angular

See content

Blazor

See content

A modal is a window displayed on top of all content, requesting information or action from the user.

Usage

Modals are triggered by a user's action and display content in a layer above the app. Modals interrupt a user's workflow by design. When active, a user is blocked from the on-page content and cannot return to their previous workflow until the modal task is completed or the user dismisses the modal. While effective when used correctly, modals should be used sparingly to limit disruption to the user. Modal dialogs are commonly used for short and non-frequent tasks, such as editing or management tasks. If a user needs to repeatably perform a task, consider making the task do-able from the main page.

When to use

Require the user to focus on one task or piece of information

Use a modal if the action can have serious consequences.

Require an immediate response from the user

Use a dialog to request information that is preventing the system from continuing a user-initiated process.

Notify the user of urgent information

Use a modal dialog to notify the user of urgent information concerning their current work. Modal dialogs are commonly used to report system errors or convey a consequence of a user's action.

Confirm a user decision

Use a modal dialog to confirm user decisions. Clearly describe the action being confirmed and explain any potential consequences that it may cause. Both the title and the button should reflect the action that will occur. If the action is destructive or irreversible then use a transactional danger modal.

Anatomy

Modal example can vary depending on the user's needs, but should always at least encapsulate a title, a body content and a cross to close it. Clicking outside of the modal, on the overlay, should allow to close it.

  1. Container: The body of the modal

  2. Title: Title of the modal

  3. Body: Contains the information and/or controls needed to complete the modal's task. It can include message text and components.

  4. Action button(s) (optional): Call To action

  5. Cross: Allow the user to close the modal without submitting any data.

  6. Overlay: Screen overlay that obscures the on-page content.

Types

Information

An information modal informs the user about something. The user has nothing do except read the content on the modal. If you want to make the information disappear with a display duration, use an alert notification component.

A confirm dialog asks a user to verify whether they want to proceed or cancel a requested action. The confirm dialog must be attended before the system executes the command. A confirm dialog could be used for example for a delete action, a replace action, a purchase action, ... Use it when the user asks the system to do an action with important consequences. It may avoid error by demanding the user to check what he wants to do.

Danger

It is a specific type of confirmation modal, used for irreversible actions. The validate button is replace by a danger button. You must explain clearly to the user that the action he attempts to do irreversible.

Acknowledgement modal

This type of modal is used when the system required that the user has read/accepted a set of rules for example. It contains the rules, a checkbox to confirm that the user is agreed with the rules and the validation button.

Placement

A modal takes place in the middle of the user screen above the interface with an overlay to obscure the rest of page content.

Do's & Don'ts

Do

  • Use modals sparingly and only for workflow related tasks.

  • A modal is always triggered by a user action (direct or indirect), use toast notification for system alerts.

The user must be able to close the modal with the escape key.

Don't

  • Don't use modal to display complex or large amounts of data.

  • Don't use modal if the user needs additional information outside of it to complete the task.

  • Don't recreate a full app or page in a modal.

  • Don't make the modal of the size of the screen.

  • Don't nest modals.

Do

The scaling of the modal should not be too big or too small. This one shouldn’t take up the entire screen. An overlay background takes place behind the modal.

Don’t

Do not scale the modal window too big.

Do

Provide a clear close option to dismiss the modal window. Click on the overlay allows to dismiss modal.

Don’t

Do not remove close button or close cross.

Do

Use modal windows for essential information to users.

Don’t

Do not use modal for no essential information, such as ads.

Do

Use only one modal per action.

Don’t

Do not use modal inside another modal. The overuse of modal dialog can affect workflow of the user.

Log in

Log in with Michelin ID

To connect to the Design System, I will need:

  • A Michelin ID (e.g. F012345)
  • Double authentification (with the NetIQ application or by SMS)
  • A password associated with your Michelin ID

I don’t have a Michelin ID and/or email

In order to connect to the Design System, I need:

  • A user ID or an email
  • A password

If you have never accessed the Design System, you can request access via this link.