Install Sam free

★ 4.9 (107 reviews) Built for Shopify Free plan available

Guides

Making Shopify Popups and Countdown Bars Accessible

TL;DR

Accessible ecommerce popups and announcement bars follow four core rules: keep text and badge contrast at or above the 4.5:1 WCAG AA ratio, respect prefers-reduced-motion by replacing slides and pulsing dots with a plain fade, give shoppers enough time to read or pause notifications on hover, and position widgets so they never block page headings, sticky buy buttons, or mobile form zoom.

Good accessibility for ecommerce popups comes down to four rules: maintain at least a 4.5:1 text contrast ratio, honor prefers-reduced-motion by replacing slides and pulsing dots with a plain opacity fade, give shoppers enough time to read or pause notifications, and keep overlays clear of buy buttons and navigation. When social proof notifications, countdown bars, and email modals follow these standards, every visitor can read your offers and check out without friction.

Many Shopify merchants test their theme’s base templates for Web Content Accessibility Guidelines (WCAG) compliance (Shopify.dev), then install third-party widgets that float above the page with low-contrast text, rapid slide animations, or unlabelled buttons. This guide covers how to configure WCAG accessible popups on Shopify using Sam FOMO. For broader placement and conversion strategy, see our social proof guide for Shopify and our sales popup design guide.

Why does accessibility matter for Shopify popups and announcement bars?

Popups, countdown timers, and promo bars sit in the foreground of your storefront. Because they appear dynamically while a customer is reading product descriptions or filling out a cart form, inaccessible widget settings create immediate barriers:

  1. Motion sensitivity and visual distraction. Sliding cards, bouncing icons, and pulsing status dots in peripheral vision can trigger dizziness or nausea for visitors with vestibular motion disorders (web.dev), and make it hard for shoppers with attention disorders to focus on product details.
  2. Unreadable small text. Social proof captions (“14 minutes ago”), countdown unit labels (“Days”, “Hours”, “Min”, “Sec”), and coupon badges use compact 9px to 14px type. When muted gray or pastel text sits on a translucent or colored card, shoppers with low vision or glare on a mobile screen cannot read the offer.
  3. Timing pressure. If a notification slides in and vanishes after 2 seconds, slower readers, screen-magnifier users, and shoppers browsing in a second language cannot finish reading the message before it disappears.
  4. Blocked controls and ghost overlays. A fixed bottom bar or corner card that overlaps a sticky Add to Cart button—or leaves an invisible container capturing taps after it closes—prevents shoppers with motor impairments from completing a purchase.
Accessibility pillarCommon popup mistakeAccessible Shopify standard
Motion & animationConstant sliding cards, scaling popups, and pulsing dots that ignore OS settingsHonor @media (prefers-reduced-motion: reduce) with a simple fade and no looping animations
Color & contrastLow-contrast timestamps (#9ca3af on dark gray) or translucent cards over photosKeep text and titles at or above the 4.5:1 WCAG AA contrast ratio (90%–100% opacity)
Timing & dismissalNotifications that vanish in 2 seconds with no close button or hover pauseDisplay for 5–8 seconds, pause on mouse hover, and keep the close (×) button enabled
Semantics & controlsIcon-only close and copy buttons with no text label or keyboard focus outlineLocalize aria-label attributes, use aria-live="polite" for copy feedback, and show :focus-visible rings
Layout & touch targetsBottom toasts covering sticky buy buttons or mobile inputs under 16px causing auto-zoomReserve top-bar space before first paint, offset mobile popups, and use 16px mobile form inputs

How do reduced motion sales notifications work on Shopify?

Operating systems (macOS, iOS, Windows, Android, and Linux) allow users to turn on a Reduce Motion or Remove Animations preference in their system accessibility settings. Browsers expose that preference to websites through the @media (prefers-reduced-motion: reduce) CSS media feature (MDN Web Docs).

When a shopper visits your store with reduced motion enabled, reduced motion sales notifications should strip out spatial movement—such as sliding across the corner or bouncing into scale—while keeping the notification itself visible.

Automatic reduced-motion rules in Sam FOMO

In Sam FOMO, the storefront stylesheet includes a dedicated @media (prefers-reduced-motion: reduce) rule for corner notifications (Recent Sales, Live Visitors, Recent Visitors, Product Reviews, Sold Count, Low Stock Alert, Cart Notification, and Cart Summary):

  • No slide or bounce transforms: Horizontal and vertical slide offsets (--sp-hx and --sp-hy) reset to 0px, and the card scale (--sp-s) locks to 1, replacing the spring slide-in with a gentle 0.3s opacity fade.
  • No looping inner animations: The rule sets animation: none on all child elements inside the notification card, stopping the pulsing live-visitor indicator dot and radar ring.
  • Paused animations when hidden: Even for visitors without reduced motion turned on, any hidden notification card (.sp-hide) sets animation-play-state: paused so off-screen elements never burn CPU cycles.

Choosing gentler animations for all visitors

Not every visitor who dislikes rapid movement turns on an operating-system accessibility flag. You can make your notifications calmer for every shopper in the Sam FOMO editor (design, placement and timing guide):

  1. Open your notification and click Placement > More placement options.
  2. Change Animation (desktop) from Slide from side or Slide from bottom to Fade in-out.
  3. Under On phones, change Animation on phones from Slide to Fade in-out.
  4. If you serve motion-sensitive audiences, skip the Flashing Tab notification type (which cycles your browser tab title when a shopper switches tabs) and rely on on-page signals instead.

How do you meet WCAG color contrast standards on popups and promo bars?

Under WCAG 2.1 Level AA, normal body text needs a contrast ratio of at least 4.5:1 against its background, while large text (18pt / 24px, or 14pt / 18.66px bold) needs at least 3:1 (web.dev). Because corner notifications use 13px message text (12px on mobile), 11px captions, and 11px to 13px titles—and promo bars use 14px to 15px text with 9px to 12px timer labels—you should treat every text element inside a popup or bar as normal text requiring a 4.5:1 ratio.

Automatic 4.5:1 contrast guards on corner notifications

When you style a corner notification under Design in Sam FOMO, two built-in contrast guards protect text readability:

  • With Match store style checked: On neutral templates (Classic, Trust Badge, Light, Social, Standard, and Progress Bar), the app reads your theme’s computed body text color, background surface, and primary button accent. It tests each color pair using the WCAG relative luminance formula. If your theme’s text or button accent falls below 4.5:1 against the card surface, the popup automatically switches the text to near-black (#111827) or white (#ffffff), and blends muted captions and the close (×) button toward the surface only as far as 4.5:1 contrast allows.
  • With custom colors or gradients: If you untick Match store style to pick your own Solid fill or Gradient fill, Sam FOMO checks your Title color against the background (or against both Color 1 and Color 2 on a gradient). If the worst-case contrast drops below 4.5:1, the title flips to #111827 or #ffffff. Picking any solid background with perceived brightness below 128 also flips body text to light #f9fafb.
  • Keep Background opacity at 90% to 100%: Lowering the Background opacity slider (20% to 100%) lets product photography bleed through behind the card as the customer scrolls, which can ruin contrast mid-page. Keep opacity at 90% to 100%. For dark storefronts, see our guide to dark mode sales popup design.

Checking contrast on Promo Bars, Countdown Timers, and Email Popups

Promo bars, countdown timers, and email popups let you set custom hex colors for every surface and badge:

  1. Watch the live contrast warning in Promo Bar. When you edit Colors in a Promo Bar (promo bar guide), the editor calculates the WCAG contrast ratio between Text and Background in real time. If the ratio drops below 4.5:1, a caution message appears: “Text and background have low contrast (X.X:1). Use at least 4.5:1 so shoppers can read the bar.”
  2. Check all three color pairs on bars and timers. In both Promo Bar and Countdown Timer (urgency and cart guide), verify that Text against Background, Code & timer text (or Digit text) against Code & timer background (or Digit background), and Button text against Button background all meet 4.5:1. The default palette (#1e3a8a deep navy on #dbe7fb light blue, and #ffffff on #1e3a8a) passes out of the box.
  3. Check email popup descriptions and discount boxes. In Popups > Content & Design > Appearance (email popup guide), make sure your Description color on the Main Popup and your Discount Code Box text on the After Submit screen maintain 4.5:1 contrast against the modal background.

How should you configure popup timing, hover pause, and dismissal controls?

WCAG guidelines for enough time (Success Criterion 2.2.1) and pause/stop/hide (Success Criterion 2.2.2) focus on giving users control over timed or moving content. If a sales notification cycles too quickly or cannot be dismissed, shoppers with cognitive, reading, or motor disabilities cannot use it.

Configure your timing and dismissal controls in Sam FOMO so shoppers stay in control:

  • Always keep the close button visible. Under Design, leave Show close button ticked (it is enabled by default). Clicking the close (×) button on a corner notification stops its cycle immediately and keeps it closed. On a Promo Bar or top/bottom Countdown Timer bar, clicking the close (×) button dismisses the bar for the rest of the browser session (sessionStorage).
  • Rely on hover-to-pause. When a desktop shopper moves their pointer over a corner notification container in Sam FOMO, the feed automatically pauses its hide timer and fans out stacked cards so the shopper can read or click at their own pace.
  • Give shoppers time to read and breathe. Under Timing, set:
    • First popup after: 5 to 10 seconds, so the page settles before any card appears.
    • Show each for: 6 to 8 seconds (default is 3–5 seconds), giving slower readers and screen-magnifier users enough time to read the product name, location, and timestamp.
    • Gap between popups: 12 to 20 seconds, so the screen stays quiet between notifications.
  • Cap notifications per page. Open Timing > More timing options and tick Show each only once (for order, cart, and review feeds) or set Times shown per page to 1 or 2 (for count popups). Note that Low Stock Alert automatically shows only once per product variant per browser session. For a deeper look at pacing, read our guide on popup frequency and timing and avoiding popup overload on Shopify.

How do semantic markup, ARIA labels, and localized text help screen readers?

Sight-impaired shoppers navigating with screen readers (such as VoiceOver, NVDA, or TalkBack) or keyboard navigation rely on semantic HTML elements, accessible names (aria-label), and focus indicators rather than visual icons.

Here is how Sam FOMO structures its storefront markup for assistive technology—and what you should check when customizing your widgets:

  1. Named landmarks and native buttons. The Promo Bar renders with role="region" and a localized aria-label ("Promotion" in English), allowing screen reader users to identify the announcement banner. Interactive controls across notifications, bars, and email modals—including close buttons, coupon copy badges, form submit buttons, and the floating reopen tab—use native <button> elements rather than unlabelled <div> tags.
  2. Polite live-region feedback when copying codes. When a shopper clicks or activates the coupon badge in a Promo Bar (.wil-cd__code), the button announces its purpose via aria-label="Copy code {code}" and displays a visible 2px outline on :focus-visible. Once clicked, an adjacent <span class="wil-cd__tip" aria-live="polite"> updates with "Copied!". Using aria-live="polite" tells screen readers to announce the confirmation at the next pause without interrupting the user’s current action (MDN Web Docs).
  3. Accessible form inputs and 16px mobile font size. In Sam FOMO’s email discount popups, every <input> field (First Name, Phone, and Email) pairs its visible placeholder with an explicit aria-label and native type="text", type="tel", or type="email" attributes. On mobile screens (768px and under), the input font size is locked to 16px (font-size: 16px !important), which prevents iOS Safari from force-zooming the viewport and disorienting the shopper when they tap a field.
  4. Keep built-in ARIA labels and your custom copy in the same language. Screen readers switch pronunciation rules based on the page language. Sam FOMO automatically translates built-in aria-label strings (Close, Copy code {code}, Promotion, form labels, and product image alt text) across 13 storefront languages (English, Spanish, French, German, Italian, Dutch, Portuguese for Brazil and Portugal, Polish, Swedish, Turkish, Japanese, and Simplified Chinese). Whenever you sell in multiple languages, fill in the Translations section of each notification so your custom message matches the built-in accessibility labels—a screen reader never has to read mixed-language strings. See our guide to translating sales popups and promo bars.
  5. Keep countdown numbers stable. Countdown Timer and Promo Bar digits use font-variant-numeric: tabular-nums so each number occupies the exact same horizontal width as the seconds tick down, preventing jittery text shifts for low-vision readers. Keep Show Days / Hours / Min / Sec labels checked so numbers always have explicit unit labels next to them.

How do you prevent popups and bars from blocking navigation and touch targets?

An accessible widget never traps a shopper or blocks underlying page controls. Google recommends keeping touch targets at least 48 by 48 CSS pixels with at least 8 pixels of clearance between interactive elements (web.dev).

Follow these four layout practices to keep your storefront easy to navigate on both desktop and mobile:

  • Use the Top bar for store-wide announcements to avoid layout shift. When you set a Sam FOMO Promo Bar to Top bar (all pages), the theme app embed reserves 56px of top padding on desktop (72px on mobile) in <head> before the first paint, and mounts the bar inside that reserved space so it scrolls naturally with the page. It never covers your sticky navigation header or causes Cumulative Layout Shift (CLS). If the timer expires, the shopper closes the bar, or the page is excluded, the reserved space is released immediately. For performance details, see sales popups and page speed.
  • Pass clicks through empty and hidden popup containers. In Sam FOMO, the shadow DOM host and .sp-popup-container set pointer-events: none on the wrapper and on any hidden (.sp-hide) or buried (.sp-buried) card. Taps and clicks always reach your store buttons the moment a popup fades out.
  • Separate mobile toasts from sticky Add to Cart bars. On screens 768px and under, corner notifications center across the viewport width (max-width: 340px, min-height: 76px). If your product page has a bottom sticky Add to Cart bar, open Placement > More placement options and set On phones > Position to Top, or keep Bottom and raise the phone Vertical offset (0 to 200px) to your sticky bar’s height plus 12 to 16px. See our full step-by-step guide on keeping mobile sales popups out of sticky add-to-cart bars.
  • Avoid aggressive email popup triggers on mobile and checkout paths. In Popups > Triggers & Placement, trigger your email popup After delay (such as 8 to 15 seconds) or On scroll rather than the instant a page loads, and exclude the Cart page under Targeting so shoppers with assistive technology can review their cart and proceed to checkout without an overlay interrupting them.

How can you audit your Shopify popups for accessibility in 5 minutes?

Before publishing a new notification, promo bar, or email popup, run this quick five-step accessibility check on your live store or theme preview:

  1. Test OS Reduced Motion: Turn on Reduce motion in your computer or phone system settings (or emulate prefers-reduced-motion: reduce in Chrome DevTools under Rendering). Reload a product page and confirm that corner notifications fade in quietly without sliding and that live-visitor dots do not pulse.
  2. Verify contrast ratios: Check the Colors section of your Promo Bar for any low-contrast warning banner, and confirm your corner notification cards use either Match store style or 90%–100% background opacity.
  3. Test keyboard and close actions: Press Tab through your Promo Bar to verify you can focus the coupon code badge, press Enter or Space to copy it (watching for the "Copied!" confirmation), focus the CTA link, and activate the close (×) button.
  4. Test hover pause and read time: Hover your mouse over a corner notification to confirm the card stays open while hovered, and read the full text out loud twice to verify the Show each for duration (6–8 seconds) feels unhurried.
  5. Test mobile zoom and tap clearance: Open your store on a phone at 200% browser zoom or in a 375px mobile viewport. Confirm that tapping an email popup input does not auto-zoom the page, and that the toast notification leaves a clear gap above your sticky Add to Cart bar.

Frequently asked questions

How do reduced motion sales notifications work on Shopify?

When a shopper enables Reduce Motion in their operating system settings, the browser activates the @media (prefers-reduced-motion: reduce) CSS query. In Sam FOMO, corner notifications automatically drop slide and scale transforms in favor of a plain 0.3-second opacity fade and disable looping animations like pulsing live-visitor dots.

What WCAG contrast ratio should popups and promo bars meet?

WCAG AA guidelines require at least a 4.5:1 contrast ratio for normal text and 3:1 for large text. Because sales popups, countdown labels, and coupon badges use compact 10px to 15px typography, aim for at least 4.5:1 across all card backgrounds, timer boxes, and buttons.

How do you keep floating popups from blocking screen taps or page content?

Keep corner notifications compact, always show the close button, pause the feed timer while a shopper hovers over the card, and make hidden or dismissed containers pass clicks through with pointer-events: none. On phones, move toast popups to the top edge or raise their vertical offset above sticky add-to-cart bars.

Do top announcement bars cause layout shift or cover keyboard navigation?

A top bar causes layout shift only if it injects after the page renders or floats over your sticky header. In Sam FOMO, the top Promo Bar reserves 56px of space on desktop (72px on mobile) before the first paint and scrolls with the document, releasing that space immediately if a shopper closes the bar.

Sources

  1. Shopify.dev: Accessibility best practices for Shopify themes
  2. web.dev: Color and contrast accessibility
  3. web.dev: prefers-reduced-motion: Sometimes less movement is more
  4. MDN Web Docs: prefers-reduced-motion CSS media feature
  5. MDN Web Docs: ARIA live regions
  6. web.dev: Accessible tap targets

Part of our guide: Social proof →

Turn store activity into social proof

Install Sam FOMO free and turn on your first sales pop-up in minutes.

Install free on Shopify

★ 4.6 (17 reviews) Built for Shopify Free plan available