Accessibility
This page describes how the consent bar and the settings dialog work for people who use a keyboard, a screen reader or zoom, and how that was checked. It is not a statement of WCAG conformance. Conformance depends on the whole site, including the colors and texts you choose.
The fixes listed below ship in LandexHub Consent 1.0.3.
What the bar does
Keyboard
- Every control is a real
buttonor link and works with Tab, Enter and Space. - The bar does not block the page. It sits after the page content, so the keyboard reaches it after the page's own links. The bar is not modal, so focus is not trapped there.
- Customize opens a modal dialog. Focus moves into it, Tab and Shift+Tab stay inside it, Escape closes it, and focus goes back to the button that opened it.
- After a choice, focus moves to the cookie icon (when it is turned on), so a keyboard user does not lose their place on the page.
- Focus stays visible on every control, also on themes that remove the focus outline of buttons.
Screen readers
- The bar is a region named "Cookie consent" with a dialog labelled by its title and described by its text.
- The category switches have
role="switch", the category name as their label andaria-checkedfor their state. "Always on" is plain text, not a disabled control. - The cookie icon has a text label ("Cookie settings").
- When the bar falls back to English (or to a language forced in the settings) on a page in another language, the bar carries its own
langattribute, so it is pronounced correctly. Texts you write yourself keep the page language.
Contrast, zoom and motion
- The default colors reach 4.5:1 for text and 3:1 for the switches against the bar background.
- The small label above the title uses your accent color and "Always on" your primary color. If that color does not reach 4.5:1 against the bar background, the bar darkens it (or lightens it on a dark background) just enough for that text. Colors that are not hex values cannot be measured and are used as they are.
- At 320 px width and 256 px height the bar and the dialog fit the screen and scroll inside instead of cutting off text.
- Animations are turned off when the visitor's system asks for reduced motion.
What stays with the site owner
- Colors. The text, button and background colors you set are used as you set them. Check that text reaches 4.5:1 against its background, for example with the WebAIM contrast checker.
- Texts. Keep the bar text short and plain, and give the buttons clear names.
- The policy pages the bar links to, and the rest of your site.
How it was tested
On 2026-11-28, on WordPress 7.1 with Twenty Twenty-Five, in Chromium, with the default settings and with dark mode:
- axe-core 4.10.2 with the WCAG 2.0, 2.1 and 2.2 A and AA rules and best practices, on the bar, the settings dialog and the cookie icon, at 1280 px and 320 px width. No violations after the fixes in 1.0.3.
- Keyboard: tab order, the focus trap and Escape in the dialog, focus after a choice, and focus visibility with a theme style that removes outlines.
- The accessibility tree as browsers expose it to screen readers (roles, names, states).
- Reflow at 320 × 256 px and 640 × 360 px.
Not tested yet: a pass with a real screen reader (VoiceOver, NVDA, TalkBack). If you use one and something does not work, please tell us on the support forum.
Fixed in 1.0.3
| Finding | Fix |
|---|---|
| The label above the title had 2.4:1 contrast with the default accent color | The label is darkened until it reaches 4.5:1 |
| The off state of the category switches had 1.5:1 contrast | A darker track, 4.8:1 |
| In dark mode, "Always on" in the default primary color had 3.5:1 contrast | It is lightened until it reaches 4.5:1 |
| Themes that remove the focus outline hid focus on the Accept and Reject buttons | The bar keeps its own focus outline |
| After a choice, focus fell back to the top of the page | Focus moves to the cookie icon |
| At small heights the bar and the dialog were cut off at the top | Both scroll inside and fit the screen |
| The bar size depended on the theme (box sizing) | The bar sets its own box sizing |
| The bar in a fallback language was read in the page language | The bar carries its own lang |