Article
Design process

updated on:

25 Aug

,

2025

Mastering Modal UX: Best Practices, Common Pitfalls, and Real-World Examples

14

min to read

Table of contents
Share

TL;DR

Modals can either streamline user experiences or completely derail them — it all comes down to design. This guide breaks down when to use modals in user interface design, common pitfalls to avoid, and real-world best practices to help you create clear, intuitive interactions that users actually appreciate.

Ever clicked a button, only to be slapped with a modal window that hijacks your entire screen? Yeah, we've all been there.

Modal dialogs are some of the most overused and misunderstood UX elements in modern user interface design. Done right, a modal window helps grab users’ attention and guide them through focused tasks. Done wrong, it disrupts the user’s workflow and sends people straight to the “close tab” button.

Some designers treat modal dialogs like a necessary evil. Others banish them entirely. But the truth? At Eleken, we use UX modals regularly as part of SaaS product interfaces — and we believe modals aren't the problem. Bad modal UX design is.

In this guide, we'll break down:

  • When to use modal dialogs (and when not to)
  • The biggest UX design mistakes designers make
  • Best practices for creating actually useful modals
  • Alternatives that might work even better

And all of that with plenty of real-world modal examples from popular products and our own experience. By the end, you'll know exactly when and how to create modals that improve — not wreck — your user interface.

What is a modal in UX?

A modal is a type of UI window that appears on top of the parent screen and demands user interaction before they can return to the main content. Think of it as a digital stop sign — it grabs user attention and forces a decision through a focused modal dialog. Think of it as a digital stop sign — it grabs attention and forces a decision by creating a distinct mode that requires users to address the modal before they can continue interacting with the main window.

modal UX example
Modal example from the Proton Mail app

But here's where things get messy. The term "modal" is often misused. Many designers lump popups, alerts, and overlays into the same category. In reality, there are three main types of dialogs in UX modals:

  • Modal dialogs – Block all interactions outside the modal window until the user takes action. Modal dialogs create a mode that require users to take action before they can continue interacting with the parent window. Example: A “Delete account” confirmation.
delete message in a modal dialog
  • Modeless dialogs – Stay open but let users interact with other parts of the user interface. Example: A floating chat window.
example of modeless dialog in a form of chat window
  • Semi-modal dialogs – Can be dismissed by clicking outside, but don’t fully block the parent page. Example: A dropdown menu or tooltip.
dropdown menu s an example of semi-modal dialog window

This distinction matters because misusing a modal dialog where a modeless or semi-modal alternative would work better leads to unnecessary friction. If a user doesn’t need to pause everything to complete a task, forcing them into a modal window might not be the right move.

Oh, and one more thing that may interest you while reading this article: modal vs. dialog.

A modal blocks interaction with the parent page until dismissed and is used for important actions like confirmations, form inputs, or alerts that require immediate user action.
A dialog is a broader term that includes both modal and non-modal interactions. It can be modal (blocking) or non-modal (allowing interaction with the background).

So, all modal dialogs are dialogs, but not all dialogs are modals.

Up next, we’ll explore when modals actually improve UX — and when they just get in the way.

The anatomy of a good modal

Not all modals are created equal. Some feel seamless, guiding users effortlessly. Others feel like roadblocks, making people scramble for the close button. So, what separates a good modal from an annoying one?

1. A clear, focused purpose

A modal dialog should exist for a reason, not just because it’s convenient for the product team. Before using one, ask:

  • Does this require immediate user action?
  • Would this work better as an inline user interface element or a separate page?
  • Is the modal dialog’s purpose obvious at a glance?

If the answer to any of these is unclear, reconsider using a modal window in the first place.

2. A concise message

Modal windows should be short and to the point. Users shouldn't have to read a paragraph just to understand what's happening. Compare these two:

good vs bad message example to put on a modal window
  • Mediocre:“Your profile helps you discover new people and opportunities” – a long title that requires more effort to process.
  • Better:“Complete your profile. This helps build trust between guests and hosts” – clear and short main title, more details in the subtitle.

A well-designed modal dialog should have a descriptive modal title and provide clear instructions so users immediately understand the purpose and required actions.

Less text. More clarity.

3. Strong, action-driven buttons

Buttons in a modal dialog should tell users exactly what will happen when clicked. Avoid vague options like:

  • OK
  • Yes / No

Instead, go for action-based labels:

  • Delete file
  • Save changes / Discard changes

This removes guesswork and speeds up decision-making.

For example, take a look at this modal example from Webflow:

bad CTA example for a modal

Its “Let’s do this” CTA button doesn’t clearly inform users of what will happen. It forces them to read all the other text in the modal window to understand the outcome.

In contrast, a modal example from Hotjar is much clearer. It uses the word “delete” right in the button, leaving no room for confusion.

good modal CTA example

4. Easy ways to dismiss

Nothing is worse than feeling trapped in a modal dialog. Users should always have a clear way to exit. UX best practices include:

  • A visible close button (not hidden in the corner)
  • Escape key to close the modal window
  • Clicking outside the modal dialog (if the action isn’t critical)

Take the modal window from Dovetail, for instance. It allows users to transcribe audio—but fails to include a clear close option. That's a problem.

bad modal UX example

On the other hand, Duolingo’s modal gets it right. While it doesn’t include the usual "X" button (since the action is critical), it gives users an obvious choice: “No, don’t cancel.” This is a solid ux design decision that prioritizes user attention and clarity.

modal UX example asking confirmation to cancel action

5. Mobile-friendly design

A modal window that works beautifully on desktop may completely fall apart on mobile devices. That’s why UX best practices call for:

  • Larger tap targets for easier interaction
  • A fullscreen modal approach when necessary
  • No scroll traps (users should be able to close the modal without frustration)

For example, when we designed modal dialogs for a property maintenance startup, we adjusted the layout for small screens by using fullscreen modals. This allowed users to complete tasks without struggling to pinch-zoom or hunt for hidden buttons.

modal UX design on a desktop vs mobile

When modal design checks all these boxes, it enhances the user experience rather than disrupting it. In the next section, we'll break down when to use modals — and when to avoid them entirely.

When to use modals (and when to avoid them)

Modal dialogs can be powerful tools in ux design, but only when used in the right context. The problem? They’re often misused, overused, or thrown in just because they “look good.” So, when does a modal window actually enhance the user interface, and when does it get in the way?

When modals work well

A well-placed modal dialog can guide users through critical interactions without pulling them away from the parent screen. Some strong use cases include:

  • Critical confirmations When a modal window appears to confirm a high-stakes user action like deleting an account or making a payment. These modal dialogs alert users and give them a chance to pause and confirm.
modal UX for critical confirmation
Runway delete account modal dialog box 
  • Focused tasks – If a user needs to complete a short, self-contained action (e.g. updating payment details), a modal window is the perfect fit.
modal design example with user input to update billing details
Updating payment details by Zepelin app
  • Step-by-step processes – A multi-step flow, like one of onboarding patterns or a product walkthrough, where each step requires user input before moving on.
using modal windows for onboarding walkthrough
Onboarding with modals that require user inputs designed by Eleken 
  • Security or legal acknowledgments – When you need to inform users of terms or policies and require them to agree before proceeding, system-initiated modals are often the right solution.
modal dialog box example for a critical security warning
Security warning modal UX by HubSpot

In each of these cases, modals enhance the user’s workflow and reduce friction — not increase it.

When modals should be avoided

Not every decision deserves a modal window. Poorly placed ux modals can interrupt flows, annoy users, and harm conversion. Avoid using modal dialogs when:

  • Interrupting users mid-task – If someone is filling out a form and suddenly a system-initiated modal appears, asking them to subscribe to a newsletter, it breaks their focus.
  • Displaying non-essential information – If the message doesn’t require immediate user action, skip the modal. A small banner or inline alert might be better.
  • Nested modals (stacking modals inside modals) – A modal dialog appears on top of another one? That’s modal stacking, and it’s usually bad ux design. It increases user error and cognitive load.
  • Content that should be inline – Things like editable forms, dropdowns, and tooltips don’t need modals. Forcing them into a modal window just adds steps.

Alternatives to modals

If a modal isn’t the best option, what should you use instead? Consider:

  • Inline expansion – Showing additional content within the current screen instead of launching a modal.
  • Slide-in panels or drawers – Good for non-blocking interactions like settings menus or chat windows.
  • Toast notifications – Best for non-critical alerts that don’t require user input.
  • Interactive elements – Use pop-overs, tooltips, or menus to provide additional information or functionality without leaving the current page.
  • Dedicated pages – If a task is complex (like filling out a multi-field form), a full page is often better than cramming it into a modal.
alternatives to modals examples

Next, we’ll dive into one of the most controversial topics in UX: modal stacking. Is it really as bad as everyone says?

The debate: Is modal stacking really bad UX?

If there’s one thing that gets designers fired up, it’s stacked modals — one modal popping up on top of another, forcing users into a layered interaction. Each stacked modal creates an additional layer above the main content, visually separating it from the rest of the interface. Some call it a usability nightmare. Others argue it’s overblown criticism. So, is stacking modals really that bad?

modal stacking example
An example of modal stacking in Sana AI app

Why designers say modal stacking is bad

The main arguments against stacking modals come down to usability and psychological aspects of design like cognitive load:

  • Users lose context. When a second modal appears, people have to remember what they were doing in the first one.
  • Navigation becomes confusing. Should users close the top modal? What happens to the one underneath? Things get messy fast.
  • Accessibility suffers. Screen readers struggle with multiple modals, and keyboard users may find it difficult to navigate between layers.
  • Users feel trapped. Too many blocking interactions create frustration, making users more likely to abandon the task altogether.
  • Other elements are blocked. Stacked modals can obscure other elements of the user interface, preventing access to important content or features.

For many, the best practice is simple: one modal at a time, no exceptions.

But what if stacked modals actually work?

Not everyone agrees that modal stacking is a disaster. Some designers and researchers argue that stacked modals can be intuitive when executed well.

Take multi-step processes in SaaS apps. Suppose a user is editing a template in a modal, and they suddenly decide to discard all changes before saving. Of course, we have to ensure this action is not accidental and the user understands what they are about to do. So, a second window appears and asks for confirmation, then smoothly returns them to the original task.

That's the case we had when creating UI/UX design for SaaS strategy reporting tool ClearPoint Strategy. And that's where we used modal stacking.

when modal stacking is the right choice

In this case, modal stacking can:

  • Prevent unnecessary page reloads or redirects. Keeping users in context can be more efficient than taking them to a separate page.
  • Mirror real-world workflows. Just like how nested tasks happen in real life, modals can support logical step-by-step interactions.
  • Be a non-issue for some users. Usability tests (as discussed in UX forums) suggest that not all users struggle with stacked modals. Some even find them helpful.

So, what's the right answer?

Like most UX decisions, it depends on execution. If you must stack modals:

  • Keep it to two layers max. More than that, and users will struggle to track where they are.
  • Ensure clear hierarchy. The second modal should feel like a natural extension of the first, not an interruption.
  • Allow easy navigation back and forth. Users should be able to dismiss the top modal without losing their progress in the first one.
  • Test with real users. Don't assume modal stacking is bad — prove it with data.

Modal stacking isn't inherently bad UX. It's badly designed basic modal window stacking that causes problems. In the next section, we'll cover common mistakes designers make with modals UX and how to fix them.

Common modal UX design mistakes

Even being the right choice, modals with bad UX are a cause of user frustration. Designers often use a pop up or multiple pop ups for every interaction, which can overwhelm users. Here are some of the most common mistakes designers make and how to fix them, including when modals require users to take unnecessary steps or actions.

1. Using modals for everything

Some designers treat modals as a go-to solution for any interaction: login forms, tooltips, onboarding steps, and in app messages  — you name it. There's even a dedicated website that highlights this problem. But not everything needs a modal.

common modal UX design mistakes schematic examples

The fix: Use modals only when necessary — for actions that require user focus or confirmation. If the information can be displayed inline or as a non-blocking element (we've already covered modal alternatives earlier in this article), do that instead.

2. Disrupting the user's task with unnecessary modals

Some modals block users in the middle of an important action for something unrelated — like a survey prompt appearing while they’re filling out a form.

bad modal UX example of when windows disrupt user tasks
Asking for feedback modal appears when users make important calculations

The fix: Keep modals contextual. If the user is already engaged in a task, don’t break their flow. Instead:

  • Defer non-essential modals to a less disruptive moment
  • Use inline alternatives where possible (like embedding a survey link instead of forcing a popup)
  • Consider using push notifications for non-urgent messages, as they can engage users without interrupting their current activity

3. Too many fields/info in a single modal

A modal should make completing a task easier, but cramming too many input fields into one space makes it overwhelming. Users either abandon the process or struggle through it.

bad modal UX example with a cluttered interface
The modal looks difficult to process because of too much unstructured information

The fix: Keep modals short and focused. If the user needs to enter a lot of information:

  • Break the task into multiple steps
  • Use progress indicators to show how far along they are
  • Consider whether a dedicated page would work better

4. Blocking important content

Sometimes, a modal appears and completely covers what the user was interacting with. If they need to reference that information, they're out of luck.

schematic image of a modal blocking all background content
The modal blocks all details, forcing users to rely on memory

The fix: Make sure the modal doesn't block contextually relevant information. If users need to compare details, consider:

  • Using a slide-in panel instead of a full-screen modal
  • Keeping a semi-transparent overlay to provide some visibility

5. Forgetting about accessibility

A visually appealing modal means nothing if it's inaccessible to users with disabilities. Common accessibility issues include:

  • Screen readers failing to recognize modal content
  • Keyboard navigation not working properly
  • Poor contrast making text unreadable

The fix: Ensure every modal is designed for accessibility by:

  • Setting keyboard focus inside the modal when it opens
  • Allowing users to navigate and close it via keyboard
  • Using ARIA labels to help screen readers understand modal content
modal UX using keyboard focus for better accessibility
Using keyboard focus for better accessibility

Bad modals frustrate users and create unnecessary friction, while a well designed modal window can streamline interactions and improve the user experience . But when designed well, they can streamline interactions and improve the user experience. Now, let's go over best practices for designing effective modals that users actually like.

Best practices for designing effective modals

Bad modals interrupt, frustrate, and make users want to leave. Good modals feel seamless, helping users complete tasks without friction. The difference? Thoughtful design. Following these best practices will guide designers in the right direction for effective modal UI design. Here’s how to get it right.

1. Only use modals when necessary

Modals should serve a clear purpose. Before adding one, ask:

  • Does this action require full user attention?
  • Would an inline element, tooltip, or slide-in panel work just as well?
  • Is the modal solving a real problem, or just adding steps?

If the answer isn't obvious, a modal might not be the best choice.

One of our projects — Process Enablement Platform – an app for enterprise workflow automation — presented a perfect use case for modals. The platform needed an intuitive way to guide users through complex process documentation without overwhelming them with long, static pages filled with screenshots. Instead of forcing users to scroll through multiple images across different sections, we introduced a Smart Screenshots functionality.

Now, instead of navigating through five static screenshots spread across three pages, users can simply click once, and a modal opens up, walking them through all the relevant fields step by step. This keeps the interface clean while ensuring that users get the guidance they need without disrupting their workflow.

modal UX example in a complex SaaS product

This is where modals shine — when they enhance clarity and streamline interactions rather than adding friction.

2. Keep the content brief and scannable

People don't read modals. They skim. If your modal looks like an essay, expect users to close it before finishing.

  • Write in short sentences — every word should serve a purpose.
  • Use bullet points for clarity when listing options
  • Prioritize key actions — the most important information should be instantly visible.

For example, take a look at a dialog modal for creating a new order, we designed for SaaS software for trade contractors.

well-structured modal window
  • Information is structured into separate blocks, making it easy to scan.
  • Text follows a clear visual hierarchy, with high-contrast titles and subtle subtitles for additional context.
  • "Required" labels provide instant clarity on which fields must be completed.
  • The primary CTA stands out, using clear, action-driven language to indicate exactly what will happen next.

By keeping text minimal, well-organized, and visually structured, this modal helps users complete their task quickly and confidently—without unnecessary friction.

3. Design buttons that stand out

A strong call-to-action (CTA) isn’t just about wording, it’s about visual clarity. The primary action button should be:

  • Larger and more prominent than secondary options.
  • High-contrast against the background for better visibility.
  • Positioned consistently (usually bottom-right for Western audiences).
  • Don’t use more than two action buttons

Additionally, ensure the style of action buttons matches the overall UI style for consistency and clarity.

Secondary actions, like “Cancel” or “Go back,” should be less visually dominant but still clear. Avoid making them too small or hiding them in plain text.

Let’s take a look at two versions of modals:

example of a bad button design for a modal window

This modal presents three competing CTAs, making it unclear what the primary action is. “Accept This Offer” is bold and prominent, but the additional “Go Back” and “Decline Offer” buttons dilute the decision-making process. Users may hesitate, unsure of what each option leads to.

great UX modal design with prominent CTA

This modal keeps it simple, with a single dominant CTA (“See plans”) that clearly directs users toward the intended action. A secondary button (“Chat with us”) offers an alternative without overpowering the main choice. The result? A more focused and frictionless user experience.

When designing modal buttons, clarity is everything — give users one clear path forward, not a decision overload.

4. Align modal design with the rest of the UI

A modal in UI shouldn't feel like a completely separate element — it should blend seamlessly with the product's overall design system. Some key considerations:

  • Match typography and spacing with the main interface.
  • Use familiar colors and button styles to maintain consistency.
  • Ensure animations feel natural — modals should appear smoothly, not jump onto the screen.
  • Create dark overlay to make the modal more prominent

When modals feel visually disconnected from the rest of the UI, users may hesitate or feel disoriented.

Here's a modal designed for a healthcare company and their product Insights by HeathStream.

modal UI for healthcare SaaS

HealthStream had brand guidelines in place, but many of their products lacked a consistent design system. This gave our designers the freedom to refine the visuals to better fit the app's interface. While we maintained the brand's fonts and color palette, we focused on ensuring the modal UI felt like a natural extension of the product's UI — seamlessly integrating with the surrounding dashboard.

This approach helps create a cohesive experience, where modals feel like part of the workflow rather than an interruption.

5. Optimize for mobile users

What works on a desktop may fail on mobile, especially when considering browser window width. Simply shrinking a desktop modal to fit a smaller screen won’t work. To make modals mobile-friendly, it’s crucial to design mobile modals that are optimized for small screens and user engagement:

  • Ensuring tap targets are large enough to prevent frustration.
  • Avoid scroll traps — users should be able to navigate the modal effortlessly.
  • Use full-screen modals when necessary to fit small screens.

We’ve already mentioned one of our projects, Jobcall, a property maintenance platform for which we designed both desktop and mobile versions. While our previous modal example from this project demonstrated a smoothly adapted UX modal with a well-placed button, there was also a case where we couldn’t simply mirror the desktop design for mobile. The modal required users to input a significant amount of information, and squeezing everything into a smaller screen would have made the experience frustrating.

To keep it both functional and user-friendly, we opted for a full-screen modal instead. This allowed us to maintain consistency with the desktop version while ensuring that buttons were easy to tap and users didn’t have to scroll sideways to see all the content.

adjusting desktop modal box to mobile app version

6. Test with real users

What seems obvious to designers may not be intuitive for actual users. Testing helps catch:

  • Unclear wording
  • Confusing navigation
  • Frustrating interactions

Usability testing is essential for keeping users happy by identifying and fixing friction points that could impact their experience.

Run usability tests to see how people interact with your modals. If users hesitate or struggle, refine the design.

Conclusion & key takeaways on modal UX

Modals are a powerful UX tool in web design but only when used with intention. When done right, they help users focus on key tasks without unnecessary distractions. When done wrong, they frustrate, interrupt, and drive people away.

Here’s what to remember:

  • Use modals only when necessary. If a task can be handled inline, on a dedicated page, or with a non-blocking element, reconsider using a modal.
  • Keep content short and actionable.Users don’t read long blocks of text — make every word count.
  • Make actions clear. Buttons should be visually distinct and guide users toward the next step.
  • Ensure a smooth, accessible experience. Modals should be easy to navigate, close, and interact with — on both desktop and mobile.
  • Test with real users. No matter how well-designed a modal seems, usability testing will reveal friction points that need fixing.

Modals aren’t the enemy — bad modals are. With thoughtful design, they can be a seamless part of the user experience rather than an obstacle. Well-designed modals significantly enhance the overall user experience by providing contextual information efficiently and improving usability. At Eleken, we specialize in app design that prioritizes usability, clarity, and conversion. If you’re building a product and want to ensure your UX is seamless, let’s talk.

written by:
image
Kateryna Mayka

Senior content writer at Eleken UI/UX design agency. Kateryna has 4 years of experience translating complex design concepts into accessible content for SaaS businesses.

imageimage
reviewed by:
image
Daria Korniienko

Former UI/UX Designer at Eleken with over 2.5 years of experience. With a marketing degree, Daria combines business insights with creative design to craft intuitive SaaS products. Her recent work helped a client grow their user base from zero to 1,000 and earn a top 3 spot on Product Hunt.

imageimage

Got questions?

  • A modal is a UI element that appears on top of a page and requires the user to interact with it before they can return to the main interface.

    It’s commonly used for critical actions like confirmations, forms, or alerts that demand user focus.

  • A modal is a type of popup that blocks background interaction until it’s dismissed.

    A popup is a broader category that includes tooltips, banners, and notifications — some of which don’t interrupt the main flow or require immediate action.

  • It depends on the context and execution.

    Well-designed modals can guide users through important decisions or steps without breaking the experience. Poorly timed or overly aggressive modals, on the other hand, frustrate users and disrupt task flows.

  • Modal UI blocks the rest of the interface until a task is completed.

    Non-modal (or modeless) UI allows users to interact with the background freely. Each has its place — modals for focused tasks, non-modals for flexible workflows.

Top Stories