Modals
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.
These guidelines have been written with the assumption that modals are implemented by extending the Lightning modal component.