WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: HTML Dialog and name

for

From: Peter Weil
Date: Dec 21, 2023 12:23PM


I think the answer to this one is “yes”.

The Dialog element has an implicit role of “dialog”, and as you note, according to the ARIA 1.2 specs, an accessible name is required for this role.

I usually use aria-labelledby and reference the highest-level heading within the dialog (e.g., h2).

- Peter

> On Dec 21, 2023, at 1:02 PM, Laurence Lewis < <EMAIL REMOVED> > wrote:
>
> 2. There is no mention, that I have found in the HTML Living Standard for
> the Dialog element, that it needs a name. Role dialog must have an
> accessible name according to the ARIA 1.2 Specification. Should ARIA
> aria-labelledby or aria-label be used to name <dialog>?



--
Peter Weil
Web Developer
University Marketing Web Services
Office of Strategic Communications
University of Wisconsin–Madison
608-220-3089