Resonance Logo

Cookie Consent

An accessible cookie consent banner with granular preference controls that lets users make informed choices about data collection.

Demo

Review the cookie consent banner below. Use Tab to move between the preference toggles and action buttons. Toggle individual cookie categories on or off, then use the primary action buttons to accept, reject, or save your preferences. Notice how the banner communicates its purpose and all controls are reachable without a mouse.

What to Observe

Anatomy

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

  1. Banner container — The outermost region, typically marked with role="dialog" or an appropriate landmark, that holds all consent content.
  2. Heading — A descriptive title that names the purpose of the banner and serves as the accessible name for the region.
  3. Description text — A plain-language explanation of what cookies are used for and how preferences affect the experience.
  4. Category toggles — Individual switch controls for each cookie category (for example, analytics, marketing), each with a label and state.
  5. Action buttons — Primary and secondary buttons for bulk actions such as "Accept All," "Reject All," and "Save Preferences."

Accessibility Behavior

Common Mistakes

Why This Matters

Cookie consent is a legal requirement in many jurisdictions, and inaccessible consent mechanisms mean that users with disabilities cannot exercise their data privacy rights on equal terms. A screen reader user who cannot operate the preference toggles has no meaningful choice — they are effectively forced into whatever the default configuration is. Beyond the legal risk, inaccessible consent flows undermine user trust and signal that the product was not designed with all users in mind.

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