A modal or dialog element does not receive user focus when activated
| Field | Value |
|---|---|
| Rule code | Manual_ModalFocus_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 the content inside the modal. The modal should receive focus on activation to ensure it is accessible to all users.
How to fix
Ensure the modal receives focus on activation by calling focus to it when the modal is displayed.