Cookie banner accessibility comes down to one test: can someone who uses a screen reader or only a keyboard read the banner, reach every button and refuse cookies as easily as they accept them? When the banner opens, a screen reader should announce a labelled dialog with its title and message. The visitor should then reach Reject, Accept and the settings as ordinary buttons. After the choice, focus should land somewhere sensible. This page explains what that means in practice, how to test your own banner, and how ClearCrumb, our free consent plugin for WordPress, handles each point.
What does cookie banner accessibility require?
A cookie banner is often the first thing a visitor meets, before a single line of your content. If it traps the keyboard, hides its buttons from a screen reader or uses pale grey text, some people cannot use your site at all. They also cannot give real consent, because a choice you cannot read or reach is not a free choice.
That is why we treat cookie banner accessibility as part of consent, not as an extra. The yardstick is the W3C Web Content Accessibility Guidelines (WCAG) 2.2 at level AA. In the EU, the European Accessibility Act has applied to many consumer websites and online shops since 28 June 2025, and it points to the same standard. The table maps the main WCAG criteria to what they mean for a banner.
| Check | Why it matters on a banner | WCAG 2.2 |
|---|---|---|
| Every button works with Tab, Enter and Space | Keyboard and switch users must be able to accept, reject and open settings | 2.1.1 Keyboard |
| Focus can always leave, or is held only in a real modal | A bar that swallows Tab locks people out of the page | 2.1.2 No Keyboard Trap |
| The banner is a dialog with a name and a description | The screen reader says what just appeared and what it is about | 4.1.2 Name, Role, Value |
| Switches announce on or off | Visitors must know which categories they allow | 4.1.2 Name, Role, Value |
| Icon buttons (×, floating settings) have text labels | Otherwise they are read as “button” or “times” | 4.1.2 / 2.4.6 |
| Focus lands somewhere sensible after the choice | When the banner disappears, focus must not fall back to nowhere | 2.4.3 Focus Order |
| A visible focus ring on every control | Sighted keyboard users must see where they are | 2.4.7 Focus Visible |
| The “choice saved” message is announced | The confirmation is read out without moving focus | 4.1.3 Status Messages |
| Text and buttons reach 4.5:1 contrast | A faint Reject link is unreadable for many people | 1.4.3 Contrast |
| Buttons are easy to hit | Small targets fail on phones and for limited motor control | 2.5.8 Target Size |

What should a screen reader hear on a cookie banner?
Good cookie banner accessibility means the banner makes sense when nobody can see it. A screen reader user should hear, in this order: that a dialog is there and what it is called, the short message about cookies, and then the buttons, each with a clear name. Here is what ClearCrumb 1.1.0, the free plugin on WordPress.org, puts in the page for that, taken from the banner code itself:
- A labelled dialog. The banner and the preferences window have
role="dialog", witharia-labelledbypointing at the title andaria-describedbypointing at the message, so the title and the message are announced together when focus arrives. - Honest modal state.
aria-modalistrueonly where the page is really blocked (the Center modal and the preferences dialog). For the bar and box layouts it isfalse, because the page behind them still works. - First in reading order. The banner is added as the first element in the page body, so a screen reader meets it before the menu and the content, even in layouts that do not move focus.
- Real buttons. Reject, Accept, Save and Preferences are
buttonelements with visible text, so they are read by name, in the same order you see them. - Switches that say on or off. Each category is a checkbox with
role="switch". Strictly necessary cookies are read as a switch that is on and cannot be changed. - Labelled icons. The close button (×) and the floating cookie settings button have an
aria-label, so they are not read as a symbol or an empty button. The ClearCrumb mark is hidden from screen readers, because it is decoration. - A spoken confirmation. The short “choice saved” message is a
role="status"region, so it is read out without taking focus away. - The right voice. The banner carries the language of the page (
lang), so the screen reader pronounces it correctly in all 16 banner languages; see cookie banner translation.
The exact wording differs between screen readers. NVDA, JAWS, VoiceOver and TalkBack each phrase “dialog” and “switch” in their own way, but they all get the same roles, names and states from this markup.

How should the banner work with a keyboard?
Keyboard access is where cookie banner accessibility most often fails. Every ClearCrumb control is a real button, link or checkbox, so Tab, Shift+Tab, Enter and Space work the way people expect. Each one shows a clear 3-pixel focus ring when it is reached by keyboard. How focus behaves depends on the layout you pick in cookie banner design:
- Bottom bar, Box left, Box right: the banner does not block the page, so it does not grab focus. Because it is first in the body, the first Tab press reaches it.
- Center modal: focus moves into the banner and stays inside it until the visitor makes a choice. Tab on the last button wraps to the first, and Shift+Tab goes the other way.
- Preferences dialog: focus starts on the first category switch and stays inside the dialog. Escape or the close button closes it without saving, and focus goes back to the control that opened it.
After a choice, focus is not left hanging. Since version 1.0.3 it goes back to the link or button that opened the banner. If there is none, it goes to the floating cookie settings button, and otherwise to the start of the page. Visitors can reopen the banner at any time with that floating button, which is a normal labelled button.
Which cookie banner mistakes block screen reader users?
The same few problems cause most cookie banner accessibility failures. Check your own banner for these:
- Fake buttons. A
divorspanwith a click handler cannot be reached with Tab and is not announced as a button. - An unlabelled ×. The close icon is read as “times” or just “button”, and nobody knows that closing may count as a choice.
- Styled checkboxes without state. A custom toggle drawn with CSS that hides the real input says nothing about on or off.
- The wrong kind of trap. A modal that lets focus slip behind it, or a small bar that holds focus as if it were a modal.
- Focus lost after the choice. The banner is removed while focus is inside it, and the keyboard user is sent back to the top of the page or nowhere.
- The banner at the end of the page. Added last in the HTML, it is read after the whole page, long after tracking may have started.
- A faint Reject link. Low contrast and small text for Reject is an accessibility failure and an unfair choice at the same time.
- Consent by scrolling or by closing. Screen reader users move through a page differently, so treating a scroll as “yes” records a choice they never made.
How do I test my cookie banner with a screen reader?
Testing cookie banner accessibility does not need special hardware. Ten minutes with free tools catches most problems. Clear your cookies first, or use a private window, so the banner shows again.
- Keyboard only. Put the mouse away. Reload the page and press Tab. Can you reach the banner, see where you are, and accept, reject and open the settings? After the choice, can you keep going without being sent back to the top?
- Windows: NVDA. Install the free NVDA screen reader and use it with Firefox or Chrome. Reload the page and listen. You should hear the banner’s title and message, then each button by name. Open the settings and check that every switch says on or off.
- Mac and iPhone: VoiceOver. Turn it on with Command+F5 on a Mac, or under Settings → Accessibility on iOS, and use Safari. Swipe through the banner and do the same checks.
- Android: TalkBack. Use Chrome, swipe through the banner, and make sure the buttons are big enough to find and double-tap.
- An automated scan. Run axe DevTools or Lighthouse with the banner open. It catches missing labels and contrast problems, but not a confusing order, so do steps 1 to 4 as well.
For the consent side, such as whether tracking really waits for the choice, use the free cookie banner checker on your site.
How are contrast, equal choice and motion handled?
Contrast. Readable text is the most basic part of cookie banner accessibility. We checked 55 colour pairs across the six styles (ClearCrumb, Paper, Minimal, Ocean, Sunset, Lavender) and their dark versions against WCAG AA. When you choose your own button colour, ClearCrumb picks dark or white button text, whichever has more contrast on that colour, using the WCAG luminance formula. The cookie compliance check in the plugin also warns you if button text falls below 4.5:1.
Equal choice. Reject and Accept use the same button style, size and font weight. Nothing is pre-ticked, and Reject is never hidden behind a second screen. This is good accessibility, and it is also what regulators expect from a fair consent request.
Target size. Banner buttons are at least 44 pixels tall, as are the “load” buttons on the YouTube, Vimeo and Google Maps placeholders, so they are easy to hit on a phone or with limited fine motor control.
Motion. ClearCrumb uses very little movement: a small animation in the confirmation message, a short slide on the switches and the logo on the floating button. When a visitor has asked their system for reduced motion (prefers-reduced-motion), all of them are turned off.
Right-to-left. On Arabic and Hebrew sites the banner is set to right-to-left and the layout is mirrored, down to the direction the switch knob moves.

How are the banner and clearcrumb.com tested?
Every ClearCrumb release is checked with the axe-core accessibility engine, with zero violations as the bar to ship, and by hand with a keyboard only. A release that fails either check does not go out. These checks cover the four layouts, the preferences dialog and the floating button.
clearcrumb.com itself is tested with axe-core and Lighthouse, where it scores 100 for accessibility, and by keyboard. On this site, text links are underlined, images have text alternatives and the video has captions.
Automated tools find a lot, but not everything. A score of 100 does not prove that every person can use a page. That is why the keyboard pass is part of every release and why your reports matter. The W3C Web Accessibility Initiative has good material on testing with real users if you want to go further on your own site.
What are the known limits?
No plugin can guarantee cookie banner accessibility on its own, because the rest of the page matters too. We want this statement to be honest, so here is what ClearCrumb does not control, and one choice we made on purpose:
- Your own content. Custom banner text, colours you set outside the button colour, and your theme’s CSS can lower contrast or readability. If you change the text, keep it short and plain.
- Your theme and other plugins. A theme that removes focus outlines everywhere, or a plugin that adds its own overlay, can affect the banner. ClearCrumb styles its own buttons and switches to resist theme rules, including hover and focus colours, but it cannot fix the rest of the page.
- Non-modal layouts do not take focus. In Bottom bar, Box left and Box right, the banner waits as the first thing in the page instead of pulling focus away from where the visitor is. If you want the banner announced the moment the page loads, choose Center modal.
- The admin screens. The plugin’s settings screens follow WordPress’s own accessibility patterns. They are not part of the visitor-facing statement above.
How do I report a problem?
If something on the banner or on this website does not work for you, with a keyboard, a screen reader, zoom, voice control or anything else, please tell us through the contact form. It helps to include:
- the page address where it happened;
- your browser and any assistive technology you use;
- what you expected and what happened instead.
Every report helps us improve cookie banner accessibility for everyone. We aim to reply within two working days and to fix banner issues in the next release. Site owners using ClearCrumb can report problems the same way, or on the WordPress.org support forum.

ClearCrumb is built by Usman Khan under Dotance, an independent WordPress studio. This statement covers ClearCrumb 1.1.0. It was last updated on 2 November 2026 and is reviewed with each release.
Cookie banner accessibility: questions
Is cookie banner accessibility a legal requirement?
In many places accessibility laws cover the whole website, such as the European Accessibility Act for many EU consumer sites since June 2025, and a banner is part of the page every visitor meets first. Consent rules also expect a clear and free choice. This page is not legal advice.
Does ClearCrumb work with screen readers?
Yes. The banner and preferences window are labelled dialogs, the category switches announce whether they are on or off, icon buttons have text labels, and the “choice saved” message is read out as a status.
Should a cookie banner move focus when it opens?
Only if it blocks the page. A modal banner should move focus inside and keep it there until a choice is made. A bar or a small box should not steal focus. It should sit early in the page so keyboard and screen reader users reach it first.
Is a cookie banner that traps focus a WCAG failure?
Not if it is a real modal with a way out. Holding focus inside a modal dialog is the expected pattern, described in the W3C dialog pattern. It fails WCAG 2.1.2 when focus is stuck in something that does not block the page, or when no button lets the visitor leave.
Can I keep the banner keyboard friendly with a custom design?
Yes. Pick any of the four layouts and six styles; the keyboard and screen reader behaviour stays the same. Avoid theme CSS that removes focus outlines, and check your changes with the cookie compliance check.
Which layout is the most accessible option?
All four meet the same checks. Bottom bar and the two boxes leave the page usable while the banner is open; Center modal asks for a choice first and keeps focus inside until then.