Modal

Android · iOS · Web
Standardised modal with variants to support fullscreen, gallery and drawer.

Overview

The Modal is used to display content or functionality in a focused overlay, typically used for tasks that require user attention or input.

Live demo

Appearance
Content
Examples

Usage

Do

  • Use the Modal component when you want to present content, forms, or interactions that require focused user attention.

  • Maintain a clear content hierarchy within the Modal, emphasising the primary task or information.

  • Ensure the Modal is responsive and adapts to different screen sizes and orientations for a consistent look and feel.

  • Reserve Modals for information that requires a users undivided attention or critical tasks.

Don't

  • Avoid using Modals excessively; reserve them for essential tasks to prevent user fatigue.

  • Ensure consistent click or tap behaviour across tag; avoid implementing different interactions for similar components.

  • Avoid overcrowding the Modal with excessive content or options; keep it focused on the primary task.

  • Steer clear of overly complex interactions within the Modal; maintain simplicity for a user-friendly experience.

Placement

Place the Modal in the centre of the screen to ensure visibility and focus. It should overlay the existing content while maintaining a clear and unobtrusive appearance. The Modal size is determined by product teams depending on the task.

Use the Overlay component behind the Modal to cover the UI behind it.

Content guidelines

Include relevant content or interactive elements within the Modal. Keep it concise, focusing on the primary task or information you want users to engage with.

Accessibility

  • Ensure a clear and visible focus indicator within the Modal for users navigating with keyboard inputs.

  • Implement a logical tab order within the Modal, allowing users to navigate seamlessly through interactive elements.

  • Test the Modal with assistive technologies to ensure a comprehensive and inclusive user experience.