Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

CKE-004 Published · Updated

Centered cookie dialog

Cookie consent shown as a dialog in the center of the screen, with the page behind it blocked until a choice is made.

Wireframe (desktop) | Centered cookie dialog

Centered cookie dialog UI design (desktop wireframe)

Wireframe (mobile) | Centered cookie dialog

Centered cookie dialog UI design (mobile wireframe)

What changes on mobile

  1. The dialog moves to the bottom of the screen: The center is hard for fingers to reach, so the dialog sits at the bottom with the buttons where the thumb reaches.
  2. Buttons stack at full width: Accept and Reject are stacked at the same width so both are easy to tap.

Before you choose this pattern | Centered cookie dialog

Good fit

  • You want people to choose their consent settings before using the page
  • You want every visitor to read it at least once
  • You want large buttons that are easy to tap on mobile too

Poor fit

  • You do not want to interrupt reading (Cookie banner bar) · Corner card cookie notice
  • You want the content to stay locked until people consent (a cookie wall. This pattern assumes the site works after rejecting)

Why this wireframe works | Centered cookie dialog

It is always seen before choosing

Because it appears in the center of the screen, it is not skipped and gets read at least once. People choose their consent settings before they go on to use the page.

Keeping cookies that need consent off until people choose is something you build in regardless of the format; a bar or a corner card can do it just as well. It depends on switching what loads based on the consent state, not on whether a dialog covers the page.

Large buttons, stacked at the same width

Stacking Accept and Reject at the same width makes both easy to press, without seeming to push people toward either one.

The text says the site works after rejecting

Writing “You can keep using the site if you reject” avoids giving the impression that the content is locked until people accept.

Common mistakes | Centered cookie dialog

Focus slips to the page behind before it closes

Even if the page is visually covered, being able to tab to links behind it confuses screen reader users. Make the page behind inert while the dialog is open, so only the dialog can be used.

Rejecting locks people out of the content

Shutting out people who reject pressures them into consenting and is not allowed in some regions. Let people use the site after rejecting.

Only Accept is large, and Reject is small text

In a large dialog where only Accept stands out, rejecting looks like more work. Make both buttons the same shape.

It appears on every page

If the choice is not saved, the dialog appears on each page and the site becomes unusable. Save the choice and stop showing it.

FAQ | Centered cookie dialog

Is a dialog too pushy?

Because it pauses interaction, it is hard to miss. As long as the site works after rejecting and rejecting takes the same effort as accepting, it is unlikely to be a problem as a way of asking. If you do not want to interrupt reading, choose the cookie banner bar or the corner card.

How is it different from a cookie wall?

A cookie wall keeps the content locked until people consent. This pattern assumes the content can be read after rejecting. Cookie walls are not allowed in some regions, so check with a specialist before using one.

Is a cookie consent dialog always required?

Whether you need consent, and how much you need to explain, depends on the cookies you use, the data sent to outside services, and the rules where your users are. Examples include GDPR and the ePrivacy Directive in the EU, US state laws such as CCPA/CPRA, and Japan’s rules on sending user data to third parties. This pattern is an example of how to build the screen; for legal decisions, check with a specialist as needed.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published