Synonyms: Dialog window, message, pop-up, dialog, dialog box

See also: Window , tooltip , error message

A modal dialog is used to display important information and control elements in a separate area. A modal dialog blocks the operation of the application window in the background (see DIN EN ISO 9241-161: 8.10).

A modal dialog always contains a text and one or more buttons that can be used to close the dialog. The modal dialog can also contain a title bar and status bar as well as other control elements, graphics, etc.

The requirements regarding the content of the modal dialog are described at the respective element. Only specific requirements for modal dialog are described here.


Figure 27: Modal dialog


Note: Fixed headers and footers in the modal dialog should be avoided, as they cause the main vertical scrollable area to become too small.

| Must | EN 301 549:, | | @!427 | Resizing | The modal dialog must be displayed in full without horizontal scrolling at a screen width of 320 px. If the modal dialog contains two-dimensional content such as tables, these should be horizontally scrollable (see

Resizing). | Must | EN 301 549:, | | @!428 | Visibility | The dialog must stand out clearly from the background.

Note 1: This can take place, for example, with a border around the dialog or the use of a gray background.

Note 2: This also applies to the use of the

Windows Contrast Adjustment.

| Must | EN 301 549:; | | @!429 | Web: Label | If the modal dialog is displayed in a separate browser window, it must have an expressive label.

Note: For the label, the <title> element is used.

| Must | EN 301 549: | | @!430 | Label | The modal dialog must have an expressive label.

Note: The label can be located in the title bar.

| Must | EN 301 549:, |

426ResizingIt must be possible to scale the modal dialog by up to 200%. During the scaling, no loss of content or functionality may occur (see
431Use of the keyboardIt must be possible to open, operate and close the modal dialog with the keyboard (see Use of the keyboard table, below).MustEN 301 549:,
432Use of the keyboardWhen the modal dialog is opened, the keyboard focus must be placed in the dialog.

Note: Typically, the keyboard focus should be placed at the beginning of the modal dialog. For simple modal dialogs, the focus can also be placed on a button at the end (e.g. “OK” or “Cancel”), provided that it is ensured that the title and text of the dialog are automatically output by the screen reader when the dialog is opened.

MustEN 301 549:,
433Use of the keyboardAs long as the modal dialog is open, the keyboard focus must remain within the dialog.MustEN 301 549:,
434Use of the keyboardWhen the modal dialog is closed, the keyboard focus must be reset to the triggering element or to an element with which the work can ultimately be continued.

Note: The resetting to the triggering element is not possible, for instance, if it has been removed due to the operation of the dialog. In this case, it is usually a good idea to place the keyboard focus on an element before or after the triggering element.

MustEN 301 549:,

Use of the keyboard: modal dialog

Permalink "Use of the keyboard: modal dialog"
Navigating within the modal dialogTABRequired
Closing the modal dialog
  • Desktop: ESC, ALT+F4
  • Web: ESC

Use of the pointing device: modal dialog

Permalink "Use of the pointing device: modal dialog"
Closing the modal dialogLeft click on the corresponding buttonRequired


Permalink "Programmierung/Schnittstellen"

Accessibility API). | Must | EN 301 549:,, | | @!436 | Name | If the modal dialog has a label or description, these must be communicated as the Accessible Name and/or Accessible Description (see

Label and


Note 1: The title bar or main heading of the dialog should be used as the Accessible Name.

Note 2: If the modal dialog contains only a small amount of text, this can be communicated as the Accessible Description.

| Must | EN 301 549:,,, | | @!437 | Desktop: Element hierarchy | The parent / child relationships of the elements within the dialog must be communicated to the Accessibility API. | Must | EN 301 549: | | @!438 | Position | The size and position of the modal dialog must be communicated to the Accessibility API (see focus visibility). | Must | EN 301 549: |

435RoleThe modal dialog role must be communicated to the Accessibility API (see

Information about this article

You are welcome to send feedback by email about our handout!