Skip to main content

Modals

Work In Progress
This page is a work in progress, accuracy of the content is not guaranteed and is subject to change at any time.

Lightning modals should adhere to UI design standards. This includes those set by Salesforce, the Web Content Accessibility Guidelines 2.2 (WCAG 2.2) and general best practices. This section of the docs combines these standards with Seven20's own to encourage a consistent, accessible and seamless experience of Lightning modals for the user.

Modals should be intuitive and have consistent properties and behaviour across the product, enabling users to familiarise themselves with them.

Usage

Use modals when needing to capture the user's input or attention for critical tasks or information. Avoid the use of modals for minor notifications; in such cases, toasts should be used instead.

note

These guidelines have been written with the assumption that modals are implemented by extending the Lightning modal component.