Dialogs provide users with contextual information or a prompt to take action.
An alert shows warnings, critical errors, success messages or other important information to users.
To alert users about task-related information and make decisions.
Prioritise critical alerts and avoid distracting users with less important messages.
An alert must adapt to different screen sizes and devices to be readable and useable.
Match the sentiment of the alert with its appropriate colour.
Explain the purpose of the alert and write clear instructions so that users understand how to resume their workflow.
A modal overlays a page and focuses user attention on a task or information.
Provide a prominent close button or an overlay area outside the modal that allows users to click or tap to close the modal.
Write concise and consistent titles, labels and descriptions. Button labels should be a single, precise action word.
Use an expandable panel or a page to avoid overwhelming users with excessive text or too many options.
Place modals in a prominent location so that users notice them. Typically, this would be top-centre.
Limit the number of modal notifications throughout as they can disrupt the user flow.
When seeking user confirmation for critical actions, include a secondary confirmation step to prevent accidental actions.
A popconfirm prompts users to confirm or cancel an action.
To confirm a user’s action e.g., deleting a file.
Include a ‘Cancel’ or a ‘Close’ button so that users can change their minds and close the popconfirm.
Content in popconfirm should clearly state the action the user is about to perform and the potential consequences.
Label buttons with actions, e.g. ’Delete’ and ‘Cancel’ and avoid vague words such as ‘OK’ or ‘Continue’.
Design popconfirm using a consistent style to help users easily recognise them.
Shell DS components are programmatically determinable with appropriate semantic markup and are designed to meet colour contrast requirements. If you’re not using Shell DS code, you will need to cover the accessibility considerations for each component in this pattern.
The focus moves to the next interactive element within the dialog.
The focus moves to the previous interactive element within the dialog.
Triggers the focused element to starting action
Closes the dialog.
Is this page useful for you?
Your feedback helps to improve our documentation.