Internet Explorer is not supported by Design Library

The last version of Internet Explorer, version 11, was released on October 17, 2013. This is a very long time ago when taking into account the rapid development of web technologies. These days it is often difficult and time consuming to get modern technologies to work well in this old browser. More and more frameworks are dropping support, and even Microsoft themselves has announced that they will fully drop support for IE in their own services in 2021.

Consequently, we have decided to not include support for IE in the Design Library website.

Luckily, there are modern options in active development. Please use Firefox, Edge or Chrome instead.

Dialogue modal

Use a dialogue when confirmation is needed or when to alert the user to something.

 

Dialogue modal

Guidelines

Short description

Dialogues contain a headline, text and UI controls. They retain focus an required action has been taken. Use dialogues sparingly because they are interruptive to the user. 

 

When and how to use it

Use a dialogue when confirmation is needed. For example when deleting an account or removing a an item that is needed for something else not visible in this view.

They may also be used as a guide when an error has occurred that has a known way of handling the problem, for example when logging in.

If the need is to make a form or ask for more things, consider using centered modal instead

Behaviour

Can not be dismissed by clicking outside - the user is "forced" to take action. The content behind the overlay is locked and can not be scrolled.

The action of the primary button should confirm the user action that triggered the dialogue. Even if we suspect that the user do not understand that. For example, when a user is choosing an action that will delete an account and we want to verify that the user really want to do that, the primary button should be “Delete” (action), not “Cancel” (back away).

Placements

Modals on modals

When a slide-out triggers a dialogue, ensure that the dialogue is always centered on the screen. The overlay should cover everything behind the dialogue to create a clear separation between the foreground and the background.

Do this

Do this

Don't do this

Don't do this

 

Examples

Desktop

Desktop

Mobile

Mobile

Error ex

Error ex

 

Writing

The dialogue is often used to confirm an action that the user took, that could lead to a negative consequence, therefore:

  • The title should be a statement referring to the action that will happen.
  • The text in the dialogue should explain the action and its consequences.
  • You may use an emphasized sentence in the message, but don't overuse it, and avoid please.
  • The title of the dialogue should match the primary button. Avoid Yes, No, and Ok in the answer/buttons.
  • The primary and secondary buttons must not be too similar. Don't make the user think about what button to click. Use Back instead of Close as the abort action if the primary action is Cancel.
  • Also, put the action that the user made in the primary button. We might want the user to take another action, but that was the action they took. On purpose, or not.

Do's and don'ts

Do this

Do this

Don't do this

Don't do this

 

Accessibility

Result from the latest accessibility review of the component (Angular+React): 2023-07-25

  • Contrast: ok - but can be hard to see border
  • Colour-blindness: good
  • Code + aria: ok
  • Touch + keyboard: good
  • Dark-mode: n/a
  • Focus: ok - need new style
  • Reader: so-so - no close button name

 

Specification

 

Related patterns & components

Page last updated

Feedback

Was this helpful?