Skip to main content
Version: v6

A modal or dialog element does not have the appropriate ARIA role provided

A modal or dialog element does not have the appropriate ARIA role provided — rule summary
FieldValue
Rule codeManual_Modal_Role_Missing
WCAG conformance levelA
WCAG success criterion4.1.2 Name, Role, Value
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.