Is your Shopify geolocation popup accessible? A checklist
By Beacon Wave Studio · · 7 min read
Geolocation popups have a bad reputation with accessibility auditors, and they earned it. A great many of them are a div that fades in, steals the pointer, cannot be reached with Tab, has a close button that is an unlabelled multiplication sign, and comes back on every page because the dismissal was never saved. For a sighted visitor with a mouse this is a mild annoyance. For a screen reader user it can be a page that has become impossible to read, with no indication of why.
The European Accessibility Act has been in force for online shops since June 2025, and the question "does our country popup pass?" has started arriving in support inboxes. This post describes what GeoBeacon does for keyboard, screen reader and reduced-motion users as shipped, what it deliberately does not do, and the few choices that remain on your side of the line. It is written from the storefront script and stylesheet, not from a feature list.
What a screen reader hears
When the popup opens, its container carries role="dialog" and is named by its heading through aria-labelledby, so the announcement is the dialog's title, in your words, for example "Looks like you are in Canada". The body text underneath is ordinary paragraph content and is read in sequence after the heading, which is what you want: the title is the alert, the body is the explanation.
The country flag, when enabled, is marked aria-hidden. It is decoration that duplicates the country name already in the text, and reading "flag of Canada" after "Canada" would be noise. The close control in the corner is a real button with an aria-label set to your decline text, so it is announced as "Stay on this site" or whatever you wrote, rather than as "times" or "button". The two main actions are plain buttons with their visible labels as their names.
Modal or not depends on where you put it
GeoBeacon can show the popup as a centred card over a dimmed page or as a bar across the top or bottom. The accessibility semantics follow that choice. The centred card sets aria-modal="true", telling assistive technology that the rest of the page is temporarily not the point. The bars set it to false, because the page behind them is fully visible and usable; a bar is an offer, not an interruption.
There is one thing GeoBeacon does not do in either mode: it does not trap focus. Focus is placed inside the dialog on open, but a visitor who presses Tab repeatedly will leave the card and move into the page. This is a deliberate trade. A strict focus trap on a popup that appears without being asked for is the single most common way these things become a prison, and the usual failure, a trap with a broken close button, is worse than no trap at all. If your audit requires modal dialogs to be strictly trapped, use a bar position and the question does not arise.
Focus and the keyboard
On open, focus moves to the accept button, without scrolling the page, so the first thing a keyboard user can do is press Enter and go, or Tab once to decline. Both buttons and the close control have a visible focus ring, drawn only for keyboard focus using :focus-visible, so mouse users do not see rings they did not ask for and keyboard users always do.
Escape closes the popup. Clicking the dimmed backdrop closes it too. Both count as choosing to stay, and the choice is stored exactly as if the decline button had been pressed, for as long as your remember-choice setting says. That last part is the one that most popups get wrong: a dismissal that is not remembered means the dialog reappears on every page, which for a screen reader user turns a one-time interruption into a site they cannot use. GeoBeacon treats every way of closing as a decision.
Touch targets and small screens
The buttons have a minimum height of 44 pixels, which is the size Apple's and WCAG's touch target guidance converge on, regardless of how short your labels are. On screens narrower than 480 pixels the centred card gives up on being centred: it becomes a sheet anchored to the bottom edge, full width, with the bottom corners squared off. Thumbs reach the bottom of a phone far more easily than the middle, and a sheet is a familiar shape there. The top and bottom bars keep their positions on phones.
Motion
The card fades and slides in, and fades out when closed. If the visitor's operating system has reduce motion switched on, the stylesheet's prefers-reduced-motion: reduce rule removes both transitions and the popup simply appears and disappears. No setting is needed on your side; it reads the preference the browser reports.
What is not shown at all
Two kinds of visitor never meet the dialog. Automated clients, detected by user agent and by the browser's automation flag, are skipped entirely, so crawlers index the page you published, not a page with a dialog in front of it. And if a rule's action is an immediate redirect rather than a popup, there is nothing to make accessible; the visitor arrives at the other store. Shopify's own guidance on automatic redirection is worth reading before choosing that mode, since a redirect with no way back is its own accessibility problem.
What remains your responsibility
- Colour contrast. Background, text and button colours are theme editor settings, described in the post on styling the popup. GeoBeacon does not measure the contrast between them. The defaults pass; a brand palette may not. Check text against its background at 4.5:1 and the button label against the button colour.
- The words. The heading is the dialog's accessible name. "Hello!" is a poor name; "Shop our Canadian store?" tells a listener what the dialog is for before they hear the body. Make the accept and decline labels say what happens: "Go to the Canadian store" and "Stay here" beat "Yes" and "No".
- Font and size. The popup inherits your theme's font. If the theme's body text is small, the popup's will be too; the popup does not set its own size to override yours.
- How often it appears. A long remember-choice window is an accessibility feature. Set it in days, not hours, so a visitor who says no is not asked again tomorrow.
A five-minute check
- Open your storefront with a VPN or the theme editor preview, and when the popup appears, do not touch the mouse. Press Tab: the focus ring should be on the accept button already, then move to decline, then to the close control.
- Press Escape. The popup should close and not return on the next page.
- Clear the stored choice, reload, and turn on your screen reader. You should hear "dialog" followed by your heading.
- Turn on reduce motion in your operating system and reload. The popup should appear without animation.
- Run your colours through a contrast checker; it is the one thing on this list that the app cannot do for you.
Accessibility for a popup is mostly a matter of not doing the lazy thing: naming the dialog, putting focus somewhere useful, honouring Escape, remembering the answer. GeoBeacon does those by default so that the only decisions left are the ones about your brand. Learn more on the GeoBeacon homepage.
Frequently asked questions
Can a screen reader user dismiss the GeoBeacon country popup?
Yes, three ways. The popup is announced as a dialog named by its heading, focus moves to the accept button when it opens, and Tab reaches the decline button and the close control, which is labelled with the decline text rather than an unnamed cross. Pressing Escape also closes it, and whichever way it is closed the choice to stay is remembered so the popup does not come back on the next page.
Does the popup trap keyboard focus?
No. Focus is moved into the popup on open, but Tab is not confined to it, so a keyboard user can leave the card and continue into the page without choosing. The centred popup is announced as modal and dims the page behind it; the top and bottom bars are announced as non-modal. A merchant who needs a strict focus trap for a compliance audit should use a bar position, where the page remains fully usable around it.
What happens for visitors who turn off animations?
GeoBeacon honours the operating system's reduce motion setting through the prefers-reduced-motion media query. When it is on, the backdrop and card appear and disappear without their fade and slide transitions, and nothing else about the popup changes.
Are the popup colours checked for contrast?
No. The background, text and button colours come from your theme editor settings and GeoBeacon does not check the contrast ratio between them. The defaults are high contrast, but if you change them, test the text and the button labels against WCAG's 4.5:1 ratio yourself, and remember that the popup text inherits your theme's font.