In short
When a dialog opens, screen readers announce its name so users know what appeared. PageSpeed flags elements with role="dialog" or role="alertdialog" that have no name. Point aria-labelledby at the dialog's heading, or add aria-label. Weight 7. It also counts against the Agentic Browsing accessibility-tree check.
This check often fails because of a cookie consent banner or a newsletter popup, not the page itself.
The fix
<div role="dialog" aria-modal="true" aria-labelledby="cookie-title">
<h2>Cookie preferences</h2>
...
</div>
No visible heading? Use aria-label="Cookie preferences".
Where it usually comes from
| Source | Fix |
|---|---|
| Cookie consent banner | Check the tool's accessibility settings, update it, or add the label via its custom code option |
| Newsletter or promo popup | Add a heading and link it |
| Theme modals (search, quick view, cart drawer) | Edit the template or ask the theme author |
WordPress: popup and cookie plugins vary; current versions of major ones label dialogs. Shopify: check cart drawers and app popups. Webflow: add aria-labelledby as a custom attribute on the modal wrapper. Wix: lightboxes; check accessibility settings.
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Lighthouse accessibility score
MDN, ARIA: dialog role

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



