You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a11y/aria-dialog-name: id-less dialogs are reported as bare "dialog", no way to locate them #462
a11y/aria-dialog-name reports an unnamed native <dialog> that has no id with the item {"id":"dialog"} only. On a page with several id-less dialogs there is no way to tell which one lacks a name: no selector path, no class, no snippet. A dialog with an id is reported as dialog#<id>, which works. Detection itself is correct on 0.0.103: a dialog named via aria-labelledby or aria-label is not reported. We saw the bare dialog item on a Shopify theme whose drawers are id-less dialogs.
Repro page
<!doctype html><htmllang="en"><head><metacharset="utf-8"><title>aria-dialog-name selector repro page</title><metaname="description" content="Minimal repro: three id-less dialogs, one without an accessible name."></head><body><h1>Repro</h1><dialogclass="cart-drawer" aria-label="Cart"></dialog><dialogclass="menu-drawer" aria-label="Menu"></dialog><dialogclass="newsletter-popup"></dialog></body></html>
"message":"1 native <dialog>(s) without accessible names","items":[{"id":"dialog","sourcePages":[...]}]
Expected
The item identifies the element when it has no id, e.g. dialog.newsletter-popup or a snippet of the opening tag, so a report and a rescan can point at the exact dialog.
changed the title [-]a11y/aria-dialog-name: items carry only id "dialog", no selector for the unnamed dialog[/-][+]a11y/aria-dialog-name: id-less dialogs are reported as bare "dialog", no way to locate them[/+]on Oct 5, 2026
Let me test this a bit because I think a broader solution may be to include an xpath for machine readable fixes and and possibly assemblng a tag / class name chain for human readable
ex. from your repro for human view would be something like:
body -> dialog.newsletter-popup
like you used in your comment - will just need to work out how to make it distinct enough and knowing which class / elements to select to make it unique.
Activity
[-]a11y/aria-dialog-name: items carry only id "dialog", no selector for the unnamed dialog[/-][+]a11y/aria-dialog-name: id-less dialogs are reported as bare "dialog", no way to locate them[/+]nc9 commentedon Oct 5, 2026
Let me test this a bit because I think a broader solution may be to include an xpath for machine readable fixes and and possibly assemblng a tag / class name chain for human readable
Thanks for reporting
nc9 commentedon Oct 5, 2026
ex. from your repro for human view would be something like:
body -> dialog.newsletter-popuplike you used in your comment - will just need to work out how to make it distinct enough and knowing which class / elements to select to make it unique.
fix(rules): aria-dialog-name identifies id-less dialogs by class and …
fix(rules): a closed native <dialog role=dialog> stays checked on the…