Resonance Logo

Mini Cart

A lightweight flyout cart panel that opens from the page header, keeping the rest of the page accessible and operable while item counts and removals are announced to assistive technology.

Demo

Click the cart trigger button to open the mini cart panel. Once open, try removing an item and observe how the item count and total update. Press Escape or click outside the panel to close it. Use the keyboard to verify that focus moves into the panel on open and returns to the trigger button on close.

Demo Store

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Cart trigger button: A header button that opens and closes the mini cart panel; its accessible name includes the current item count.
  2. Item count badge: A visual indicator overlaid on the cart icon showing the number of items; decorative and backed by text in the button's accessible name.
  3. Mini cart panel: The flyout container that holds the item list, order summary, and action buttons; it is non-modal and does not trap focus.
  4. Line item: A compact row displaying a product's image, name, quantity, and price, along with a remove action.
  5. Remove button: Deletes a line item from the cart; its accessible name includes the product name to distinguish it from other remove buttons.
  6. Live region: An ARIA live region that announces item removals and updated totals to screen readers without requiring manual navigation.

Accessibility Behavior

Common Mistakes

Why This Matters

The mini cart is often the fastest path to checkout, so its accessibility directly affects whether users with disabilities can complete a purchase. A keyboard user who cannot get focus into the panel, or who loses their place in the page when it closes, faces a significant barrier at the most critical step of the shopping journey. Screen reader users who receive no feedback when removing an item may remove the wrong product or repeat the action unnecessarily. A well-implemented mini cart ensures that every user can review and manage their cart quickly and with confidence.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation