Skip to main content
Version: v6

A modal or dialog element does not receive user focus when activated

A modal or dialog element does not receive user focus when activated — rule summary
FieldValue
Rule codeManual_ModalFocus_Missing
WCAG conformance levelA
WCAG success criterion1.3.1 Info and Relationships
Must be fixed at sourceNo

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.