Cookie or GDPR modal is lacking a keyboard tabloop
| Field | Value |
|---|---|
| Rule code | Manual_CookieTabLoop_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 2.1.1 Keyboard |
| Must be fixed at source | No |
Description
A cookie consent or GDPR modal was detected without a proper keyboard tab loop. Without a tabloop implemented, keyboard users may accidentally tab past the modal and interact with background content, making it difficult to return to the consent window. Ensuring focus is trapped within the modal until the user interacts with it will prevent navigation issues.
How to fix
Implement a focus trap by looping focus within the modal. Keep user keyboard focus inside the modal until one of the interactive elements: a close button, an accept button or a deny button or other, is activated.