FB

When, Where, and How to Use Modals in UX Design


This story addresses the problem of overusing modals in UX design by drawing designers’ attention to all tools they have in their toolbox in addition to modals.

A modal in UX design
A modal in UX design

Modals are overused on the web today. Looking closely at their use cases, it is easy to realize that there are misconceptions among designers around their proper application.

Modals are a strongly discouraged UX pattern. By design, modals interrupt a user’s workflow. When a modal is active on a page, the user is blocked from interacting with the content on its parent page and cannot return to their previous workflow unless the modal task is completed or the user dismisses the modal. While modals could be effective when used correctly, they should be used judiciously to limit workflow disruption.

Modals grab users’ immediate attention. They are meant to be bold and should be reserved for cases that deserve users’ undivided attention.

I conducted a UX Audit of the unauthenticated space of a public website and found that the misuse of modals on this website is particularly widespread.

I used the Double Diamond Model of Design for this investigation. Using this framework, I was able to identify both a problem statement and its holistic solution. The problem statement pivots around the overuse of modals on this website. The holistic solution has many parts including a Modals Decision Framework (MDF) that 1. informs designers about the alternatives to modals, and 2. guides them towards the correct use cases for modals.

To keep the audited website anonymous, I haven’t included screencaps from that website in this story. To provide context and examples around the points mentioned in this story, my collaborators and I crafted wireframes in Figma mostly around ecommerce and SaaS concepts. We used Lorem ipsum whenever the copy did not play a role in the point being made in the story.

Problem space — divergence

When going through the divergence phase of the problem space, I gathered some sporadic observations.

The information icon (i) in UX design
Figure 1: The information icon (i)
  • There is an overabundant use of the information icon (i) on the website both to access modals and pop-up tips.
  • Modals on the site are used to offer various types of content including textual and video.
  • Modals are used to declutter interfaces when other means of progressive disclosure such as accordions are more appropriate.
  • In many cases modals on this site are content-heavy and are being used in lieu of full page designs. When asked, the design team reported that their clients had a tendency to provide verbose content and steer UX designers towards cramming that content into modals. To accommodate lengthy content, many modals on this site have vertical scrollbars.
  • Some modals on the site do not follow the standard anatomy outlined for modals in UX literature. This anatomy is illustrated in Figure 2.
The modal anatomy in UX design
Figure 2: The modal anatomy

Some modals on the audited site do not follow this anatomy by:

  1. Burdening users with lengthy content without clear titles to put the information in context.
  2. Placing CTAs somewhere within their bodies rather than their footers.
  • When copying the content from some of the sites’ modals into a Google search, the relevant modals appear in search results, sometimes with a higher ranking compared to their parent page.
  • This website uses modals considerably more than any of its major business competitors.

Problem space — convergence

Putting all these observations together, I converged on the problem statement “User-initiated modals are being overly and poorly used on this website.” At one point, more than 1,700 user-initiated modals were identified on the audited website.

I also realized that the modals on this site differ from one another in terms of visual and content design, their SEO properties and how they are developed.

Why is the overuse of user-initiated modals on a site a problem?

I explored this problem from three perspectives: UX, SEO and content strategy.

UX

Based on UX best practices, modals are purposefully interruptive and should be used sparingly. Here are some problems caused by modals from a UX perspective:

  • Compared to on-page content, modals on this site often hide essential details users need to complete their tasks. An example is hiding the details of subscription plans in a modal that pops up only after users click on the (i) icon as shown in the following GIF. This could negatively affect conversion especially if that content is critical to users’ decision-making processes.
A modal with explanatory content would appear after a user clicks on the (i) icon on the parent page
Figure 3: On this page, users are expected to convert to a subscription plan that best matches their needs using the “Get started” CTAs. However, details of the subscription plans are hidden in a modal that would not appear unless users click on the (i) icon next to “Find the best plan for you.”
  • Compared to on-page content, users need an extra click to access content offered in modals and this slows them down and could negatively affect conversion. The GIF above shows an example of this.
  • Modals are rendered as overlays, so users cannot easily look at the content of the modal and the parent page at the same time. This limitation becomes especially problematic when modals are used to provide further explanation about a specific term on a page. Pop-up tips on the other hand allow users to look at the content inside them and the parent page at the same time, offering a better alternative for this sort of contextual help. Figure 4 is an example of misusing modals to elaborate on an acronym.
A modal providing more information would appear after a user clicks on the (i) icon on the parent page
Figure 4: When users need help understanding the acronym “CRM,” they click on the (i) icon next to “CRM” on the page. This opens up a modal that defines “CRM.” The problem is that users cannot look at the content of the modal and the parent page at the same time.
  • Users cannot look at the content presented in two modals in parallel. For example, details of different programs should not be put inside modals as this takes away a user’s ability to look at multiple options simultaneously and compare them. The following GIF shows an example of misusing modals for this purpose.
A modal with additional information would appear after a user clicks on each “Learn more” link on the parent page
Figure 5: On this page, the details of each program are offered in a separate modal that can be accessed via the “Learn more” link. So a user cannot look at the details of multiple programs at the same time and compare them.
  • Modals by design don’t have standalone shareable URLs accessible by users. If a user finds the information in a modal useful and wants to share it with someone else, they have to share the URL of the parent page and then provide instructions on how to access the modal from the parent page. Figure 5 shows a use case where this limitation of modals makes it hard for users to share information. Another constraint is that users cannot bookmark modals.
  • Modals on the site are often used for playing videos that have a play button on the parent page. Figure 6 shows an example of this. Unintended clicks outside these modals on the parent page while the video is being played could lead to users losing their place in the video and having to play it from the beginning. On a side note, unlike videos, images are discrete and consume less bandwidth. So, using a modal to display an enlarged version of an image would not impede users the same way.
A video modal appears after a user clicks on the video play button on the parent page
Figure 6: When users click on the play button to the left of the video link on the parent page, a modal opens as a container for playing the video. Accidental clicks outside this modal on the parent page while the video is being played in it would require users to replay the video from the beginning.
  • Modals on the site are sometimes used to display information critical to users such as order/request numbers after they fill in forms and submit them. Figure 7 shows an example of this scenario. Users might accidentally close these modals by clicking somewhere outside them on the parent page or through misclicks on their close buttons. If this happens, users have lost the chance of seeing these critical pieces of information and do not have a way of accessing them again. Also, users tend to close modals without reading them and this further increases their chance of losing access to critical information in such cases.
A form submission feedback modal appears on the screen after a user submits the form
Figure 7: The inquiry number is offered to users in a modal after they fill in the inquiry form and submit it. After submitting the form, users might accidentally close the modal by clicking somewhere outside it on the parent screen, losing access to the inquiry number.

SEO

The SEO properties of modals on this site have been set in two ways, both of which are detrimental:

  1. Non-searchable modals that have no-index and/or no-follow as their SEO properties: When the modals’ SEO properties are set this way, the website is losing the SEO benefits that the content in modals could otherwise provide.
  2. Searchable modals: When the modals’ SEO properties are set this way, traffic from a Google search will be directed to non-branded, dead-end, out-of-context pages.
    These pages are considered non-branded since, unlike full-page designs, they do not have branded footers and headers.
    Missing headers and footers would also mean that there is no way for users to navigate from these pages to others on the site. In addition, the absence of CTAs on a majority of these pages make them more of a dead-end as there is no next action for users to take.
    Also, by offering users direct access to these user-initiated modals in SERP, they would not have the context offered on the modals’ parent pages and would miss out on the steps they would have had to take on the site to arrive at these modals. In other words, these modals were designed to be part of a task flow and so it does not make sense for users to access them directly.
    An example was a modal that appeared in SERP when I did a branded Google search on the name of one of the forms on the audited site. The content of this modal acknowledged that the user’s request was received and thanked them for it. It also mentioned how the business might respond to the received request. This example clearly demonstrates the problem. User-initiated modals are meant to be displayed to users after they have gone through a couple of steps and seem random when access to them is provided this way in SERP.
    These modals appear in SERP because in the development method used for this website, they are standalone pages with their own URLs in the backend and their SEO properties have been set such that they are searchable.

Content strategy

From a content strategy perspective, thinking of modals as drawers that can be used to hide content can have unintended consequences.

  • Modals might replicate content that already exists elsewhere on the site. This becomes especially problematic from a maintenance perspective when modals contain business logic such as eligibility requirements that change over time and need to be updated in multiple modals. The following GIF shows an example of this.
A modal providing additional information opens up after a user clicks on the (i) icon on the parent page
Figure 8: On this page, the eligibility requirements for the $0 fee option are listed in a modal accessible via the (i) icon next to “requirements” on the parent page. Eligibility requirements change over time and will need to be updated in every modal where they are mentioned across the site. This is a time-consuming and error-prone process.
  • Modals can be used as an excuse not to trim down content and not to use more user-friendly, concise language.
  • Modals can also be abused to compensate for poorly-written and unclear language on pages. The copy on each page should be clear enough that it does not need further clarification via modals. The following GIF shows an example of this.
A clarification modal pops up on the screen after a user clicks on the (i) icon on the parent page
Figure 9: “Satisfaction guaranteed” is on the page as an assurance mechanism to entice users to proceed to checkout. However, the term is unclear to users and they need to click on the (i) icon next to “Satisfaction guaranteed” to learn more. This click causes a modal to open up explaining the term.

Solution space — divergence

During the divergence phase of the solution space, I had to deepen my understanding of when and how user-initiated modals are being used on the site today. I also had to examine the alternatives to modals currently in use on the site. These alternatives could substitute for modals and provide a better user experience.

First, I looked at how modals are being used on the site today and categorized their use cases into the following buckets:

  1. Modals that are used to offer clarification, further detail or explanations about a topic on the parent page. This is the primary use case for modals on the audited site. These modals contain information and in some cases CTAs. I will refer to them as Basic Modals.The modal in Figure 3 is an example.
  2. Modals that are being used for playing videos. I will refer to them as Video Modals.An example is the modal in Figure 6.
  3. Modals that provide feedback to users after they submit forms. I will refer to these as Form Submission Feedback Modals.An example is the modal in Figure 7.

Second, I explored the alternatives to modals in use on the audited site today and identified the following:

Alternatives to Basic Modals:

  1. Placing content directly on the page
    Place additional content directly on the page to avoid the unnecessary use of modals. This might require editing the additional content and rethinking its placement on the page since it must be placed where it fits best contextually. Consider the use case of showing details of various plans. Figure 10.a uses a separate modal to show the detail of each plan and Figure 10.b shows plan details on the same page.
A modal appears on the screen after a user clicks on the (i) icon next to each plan to learn more
Figure 10.a: Plan names are listed on the parent page along with an (i) icon next to each one. Clicking on each (i) icon opens a modal explaining the plan’s details.
Showing explanatory content on the current page as an alternative to  using modals
Figure 10.b: At the top of the page, plan names are listed as anchored links to sections of the same page. When users click on each plan name, they would be taken to the section on the same page that elaborates on that plan.

As an alternative to the modal in Figure 3, Figure 11 shows an example where the need for a modal is eliminated by providing explanatory information relevant to users’ decision-making processes directly on the page.

Inserting descriptive content on the page instead of hiding it in a modal
Figure 11: Rather than putting plan details in a modal (as done in Figure 3), inserting descriptive content on the page helps users’ decision-making processes and might increase conversion.

As an alternative to the modal in Figure 9, Figure 12 shows an example where the need for a modal is eliminated by using clear language on the page.

Using clear language on the page as an alternative to using vague language on the page and providing clarification in a modal
Figure 12: Rather than using the vague term “Satisfaction guaranteed” on the page and a modal to clarify it (as done in Figure 9), assurance is provided on the page using clear language.

Testimonials are another common use case for modals. It is common for designers to pull out a quote from a testimonial and place it on the page while inserting the complete testimonial in a modal. Figure 13.a shows an example of using a testimonial modal. While this could work especially if there are multiple testimonials on a page, there is an alternative. Figure 13.b shows the alternative approach of trimming testimonial content and placing it directly on the page, making it more likely to be seen by users.

The common UX pattern of testimonial modals
Figure 13.a: There is a quote from the testimonial on the page along with a “Read full testimonial” button. Clicking on this button shows the complete testimonial to users in a modal.
An alternative approach to testimonial modals
Figure 13.b: Trims down testimonial content and places it directly on the page.

2. Linking to content on another page

A link could take users from the current page to explanatory content that:

A. May be present on an existing page in other sections of the website, especially in generic sections such as articles, glossaries and FAQs. Consider the use case of spelling out eligibility requirements. Figure 8 uses a modal for this purpose. However, the design in Figure 14 links to existing content on eligibility requirements on another page in generic sections of the site.

The alternative approach of linking to existing content rather than using modals to elaborate
Figure 14: Rather than spelling out requirements in a modal (as done in Figure 8), clicking on “requirements” would take users to existing content in generic sections of the site that explain those requirements.

B. May require a net-new page to be created on the site to accommodate it. Consider the use case of showing program details. Figure 5 uses a modal for this purpose. However, the design in Figure 15 links to a newly-created page to provide the details of each program.

The alternative approach of creating net-new pages to host explanatory content and linking from the current page to them
Figure 15: Rather than inserting program details in a modal (as done in Figure 5), clicking on each program’s “Learn more” link would take users to a newly created page that provides the details of that program.

3. Using other less disruptive means of progressive disclosure

Use alternativemeans of progressive disclosure on the parent page to reveal additional content. These include accordions, pop-up tips, tabs and drop-down menus.

Consider the use case of showing a one-sentence definition for each shipping method on the page. Figure 16.a uses modals to provide further explanation on shipping methods. Figure 16.b uses accordions for the same purpose.

Using modals to show further information on each topic
Figure 16.a: Clicking on the chevron link related to each shipping method opens a modal that further explains that shipping method.
Using accordions to show additional information on each topic upon user’s request
Figure 16.b: Clicking on the chevron related to each shipping method expands the accordion that provides further explanation on that shipping method.

Figures 17.a and 17.b are two ways of showing the shipping fee breakdown table, one using a modal and the other using the “show more” construct.

Displaying additional information in a modal that opens up upon user’s request
Figure 17.a: Shows the breakdown of shipping fees as a table in a modal after users click on the button on the page.
Using the “show more” shutter as an alternative way of elaborating on a topic on the page
Figure 17.b: Shows the breakdown of shipping fees as a table on the page after users click on the “Show shipping fee breakdown” chevron.

By using alternative means of progressive disclosure, Figure 18 shows a way of redesigning the use case in Figure 4 using a pop-up tip.

Using popup tips as an alternate approach to providing contextual help to users
Figure 18: Rather than using a modal to educate users on the acronym “CRM” (as done in Figure 4), explanatory content is provided in a pop-up tip.

Consider the use case of directing users to the right number that they can call depending on their inquiry type. Figure 19.a uses modals to show the phone numbers. Figure 19.b uses a dropdown for this purpose.

Using modals to display relevant information to users depending on their choice
Figure 19.a: Lists various inquiry types as buttons on the page. Clicking on any of these buttons opens a modal displaying the phone number users should call for their inquiry type
An alternative approach of using a dropdown to display relevant information to users depending on their choice
Figure 19.b: Uses a dropdown for displaying users’ various inquiry types. When a user has selected their type of inquiry from the dropdown, the relevant phone number appears below the dropdown pushing the rest of the content on the page down.

Consider the use case of showing additional information on different aspects of a product. Figure 20.a uses modals to show this additional information. Figure 20.b uses tabs for this purpose.

Offering additional information on different topics using modals
Figure 20.a: Lists various aspects of a product on the page as links. Users can click on each link to open a modal and learn more about that specific aspect.
Using tabs as an alternative way of  offering additional information
Figure 20.b: Uses tabs to show additional content about different aspects of a product.

Alternative to Video Modals:

Playing the video inline on the page

The benefit of this approach is that it allows users to scroll up and down the current page and skim through its content as the video is being downloaded. This is especially important if the video takes a while to download. It also enables users to listen to the video in the background as they are reading through the page’s content.

As an alternative to the modal in Figure 6, Figure 21 shows an example of playing the video inline on the current page.

Playing videos inline on the page as an alternative to using modals
Figure 21: Rather than using a modal for playing the video (as done in Figure 6), the video is played inline on the page.

Alternative to Form Submission Feedback Modals:

Presenting form submission feedback on a separate page

This alternative uses a net-new page to display important information such as an inquiry number to a user after they fill in a form and submit it. Figure 22 shows an alternative way of redesigning the use case in Figure 7 by creating a net-new page.

Creating a net-new page and showing the form submission feedback on that page as an alternate approach to using modals
Figure 22: Rather than showing form submission feedback to users in a modal (as done in Figure 7), a net-new page is created and form submission feedback is placed on it. This page is shown to the users after they fill in the form and submit it.

Solution space — convergence

To help UX designers decide between using user-initiated modals vs. alternatives, we created the Modals Decision Framework (MDF). We are not recommending that modals be phased out entirely, but that they be used less often when no preferable option is available.

The purpose of the MDF is 1. to connect the current use cases for modals on the audited site to alternative means where appropriate, 2. to identify the most effective scenarios for using modals. The recommendations in the MDF are based on the guidelines and best practices suggested by UX literature and various design systems such as IBM’s Carbon Design System.

The MDF is structured conversationally to engage designers in a dialog consisting of a series of questions asked in order of logical precedence. The purpose of these questions is to better understand the context of the problem that the designer is dealing with before making a recommendation. In the MDF, the questions that look into the specifics of the problem that the designer is trying to solve are in black and the recommended solutions are in blue. To help designers apply these recommendations, solution nodes reference relevant examples from this story.

To keep the MDF at a legible size within Medium’s width constraints, I’ve split it into three based on the category of use cases identified for modals on the audited site today. It is best to read through these three parts in the order presented in this story. The original one-piece version of the MDF could be accessed at:

Modals_Decision_Framework.png

Part 1 of the MDF — for Basic Modals

If the answer to the question “Are you considering using a modal to display additional content about a topic on the current page?” is yes, then this branch of the MDF will be useful to you.

Figure 23: This branch of the MDF provides a structured way of deciding when to use a modal vs. other alternatives for displaying additional content about a topic on the current page.

Part 2 of the MDF — for Video Modals

If the answer to the question “Are you thinking of using a modal for playing a video that has a play button on the current page?” is yes, then this branch of the MDF will be useful to you.

Figure 24: This branch of the MDF demonstrates the two alternatives available to designers for playing videos.

Part 3 of the MDF — for Form Submission Feedback Modals

If the answer to the question “Are you thinking of using a modal to give feedback to users about the result of a user-initiated form submission on the current page?” is yes, then this branch of the MDF will be useful to you.

Figure 25: This branch of the MDF provides a structured way of deciding when to use a modal vs. a new page for displaying form submission feedback to users.

The MDF has been specifically designed to address the needs of the audited website and the business it needs to support. The use cases considered reflect how modals are currently used across the site and the use cases that are likely to occur based on the precedents observed. For example, one of the common use cases for modals in UX literature is to ask for confirmation when a user requests a record to be deleted. As no transactions are happening on this website based on the business that it needs to support today, these modals are not considered in the MDF. However, the MDF is scalable and new use cases could easily be added as they arise.

In suggesting a holistic solution, here are additional recommendations based on the problems identified on this website:

Visual design and content strategy guidelines

  1. The (i) icon should be reserved for pop-up tips while modals should be opened when users click on buttons and links.
  2. Although titles are an optional part of modal anatomy, we recommend they should be added to modals on this site to help set context for users.
  3. CTAs should only be placed in the footer area of modals.
  4. Modal content should be concise with guardrails. For example, Telus’ Design System recommends 150 characters for titles and 400 characters for body text.
  5. The maximum width of modals should be 90% of the screen up to 600px. The maximum height of a modal should be 80% of the screen. Vertical scroll bars should be added to modals when viewport height is shorter than the contents of the modal.

Development guidelines

The development method should change so that when new modals are added to the website, they become part of the parent page’s source code. This would better leverage the SEO benefits of the content in modals by directing Google search traffic to the parent pages. This is a special point of consideration when it comes to Basic Modals.

This is not an exhaustive list of all modal guidelines. For example, the accessibility guidelines related to modals are not mentioned because they are not violated on the audited site. This story does not touch upon all content and visual design guidelines either. It only focuses on the ones that could be better applied to this site.

Conclusion

In many cases, the usage of modals on this site is indicative of design problems. More often than not, they have been used on the audited website to make life easier for the designers rather than users. Rather than phasing modals out, we suggest they should be used properly only when required.

This MDF is an attempt to limit the use of user-initiated modals to cases where they are absolutely necessary and recommend alternatives based on factors that can impact the decision-making process. It may not fit your specific design-space requirements. However, it is an attempt to steer designers towards their best design alternatives.

I’d like to thank my collaborators, Hossein SharafiMasoud Jahani and khadijeh Hamidi for their valuable contributions to this story.

Leave a reply