Cookie or GDPR modal does not receive focus on page load
| Field | Value |
|---|---|
| Rule code | Manual_CookieFocus_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 1.3.1 Info and Relationships |
| Must be fixed at source | No |
Description
A cookie consent or GDPR modal was detected but did not automatically receive focus when the page loaded. This can cause accessibility issues, as users relying on keyboards or assistive technologies may miss the modal entirely, making it difficult for them to interact with consent options. The modal should receive focus on load to ensure it is accessible to all users.
How to fix
Ensure the modal receives focus on page load by calling focus to it when the modal is displayed.