TermsFeed Privacy Consent (CMP) makes the cookie banner and the Preferences Center work with a keyboard, and your colors, your own links, and your pages after a refusal stay your responsibility. A visitor who fails to reach I Decline with a keyboard has no real choice, and the answer you record for that visitor is weak evidence. The European Accessibility Act (EAA) has applied to many consumer ecommerce services since 28 June 2025, and the consent banner is part of the service.

The consent banner and the Preferences Center respond to Tab, Enter, Space, and Escape with no code on your side. A keyboard user answers the consent banner, opens the Preferences Center, switches vendor categories, and saves without a mouse.

  • Focus on arrival. The consent banner takes the keyboard focus when it appears, and the Preferences Center moves the focus to its first control.
  • An open page behind the consent banner. The consent banner is not modal, so Tab moves on into your page and visitors use the page before they answer. A page element that takes the focus under the consent banner scrolls up into view above it, as far as the page scrolls.
  • A closed loop in the Preferences Center. Tab and Shift+Tab stay inside the Preferences Center until the visitor closes it, and focus then returns to the element that opened it.
  • Escape. Escape closes the Preferences Center without saving, and it acts as Close for the consent banner wherever the focus is, except in a field of your page.
  • Toggles. Enter and Space switch a toggle, and each toggle reports its state as on or off. A partly accepted vendor category in the consent banner reports as mixed.
  • Names. Both dialogs carry their "Your privacy preferences" title as their accessible name, and the × button has the accessible name "Close". Each toggle takes the name of its vendor category or vendor.
  • Language and headings. The consent banner, the Preferences Center, the floating buttons, and the embed placeholders declare the language they show, right to left for Arabic. Screen readers read them in that language, and list their section titles as headings.
  • A visible focus outline. "Card", "Bar", and "Panel" show a 2px outline in the button color on keyboard focus, and "Simple" and "Headline" show a dotted 1px outline in the text color. The floating buttons of "Simple" and "Headline" show 2 rings, in the button color and the button text color, so one stands out on any page.
  • Touch and motion. Buttons on "Card", "Bar", and "Panel" are at least 44px high. Close on the consent banner is the exception, at 36px high in "Card", in "Bar" up to 900px wide, and on phones. The animations stop for a visitor whose device asks for reduced motion. A "Simple" or "Headline" consent banner taller than the screen, on a small phone or at a high zoom, scrolls inside itself.

What you are responsible for

The colors you choose, the links you add, and how your site behaves after a refusal decide most of the accessibility of your setup. Privacy Consent ships the markup, and you control what surrounds it.

  • Custom colors. "Light" and "Dark" reach a contrast of at least 5.1:1 on every consent banner type, measured on the button labels, which have the lowest ratio. A "Custom" theme or a CSS rule reaches that only where you check it.
  • Your own preferences links. A link that opens the Preferences Center works with a keyboard only as a real <a href="#"> or <button type="button"> with visible text. A <div> or <span> with the right ID never takes the focus.
  • Your CSS and your settings. A rule that removes the focus outline or hides I Decline takes the choice away from keyboard users. With 'Hide the "Close" button in the consent banner?' on, Escape does nothing, and a keyboard user has to answer to dismiss the consent banner.
  • Your pages after a refusal. A visitor who declines still needs to read, buy, and contact you. Replace a declined chat widget with a contact link through an on-decline vendor tag, and give blocked embeds a placeholder.

The "Custom" theme and the on-decline vendor tag each need a setup of their own. Choose colors with Colors and Themes, and add fallback content with Trigger Actions.

How to choose between a built-in theme and custom colors

Keep "Light" or "Dark" unless your brand needs other colors, because the contrast check then moves to you. The deciding factor is the ratio of your brand colors. Brand colors that reach 4.5:1 for the text and for the button labels work in a "Custom" theme, and the app shows you both ratios. Brand colors that fall short belong in your own buttons and headings, while the consent banner keeps a built-in theme.

Start in a new private window, because a saved answer hides the consent banner, and put the mouse aside.

  1. Load your home page and press Tab until the focus reaches I Decline.
  2. Press Enter and confirm that the consent banner closes.
  3. Open Chrome DevTools, select the Network tab, and filter for events.push. A request with status 201 shows that the answer was recorded.
  4. Press Tab until the focus reaches your preferences link, then press Enter.
  5. Press Tab repeatedly and confirm that the focus stays inside the Preferences Center until you press Escape.

How to test the contrast in DevTools

Chrome reports the contrast ratio of the text you select, which covers a theme or CSS rule the app contrast line does not see.

  1. Open your site in a new private window, select the Elements tab in DevTools, and click #termsfeed_pc1_notice_banner_reject_all_button.
  2. Click the color swatch of its color value in the Styles pane and read the contrast ratio in the picker.
  3. Repeat for a paragraph of the consent banner text and confirm 4.5:1 or more for each.

Listen for the title, the text, and the button names, since the screen reader decides how toggles sound and the markup alone does not show it.

  1. Turn on VoiceOver on a Mac (Command+F5) or NVDA on Windows.
  2. Move through the consent banner and confirm that the title and the text are read and that I Agree and I Decline are announced as buttons.
  3. Open the Preferences Center and confirm that each toggle announces its vendor category and its state.
  4. Select the Elements tab in DevTools and open the Accessibility pane to read the role and the name of any element a screen reader gets wrong.

How to test that declining leaves the site usable

Refuse consent in a new private window and use the site the way a visitor does. A cookie wall that blocks a visitor who declines is a separate legal problem, which the TermsFeed post on cookie walls sets out.

  1. Click I Decline and browse 3 pages, including one with an embed and one with a form.
  2. Select the Network tab and filter for the host of a declined vendor, such as youtube.com.
  3. Confirm that no request appears, that each page still works, and that each blocked embed shows its placeholder.

A site that passes this test still has the rest of a refusal to check. Run those checks with the steps for the decline button.