WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: HTML Dialog and name

for

From: Peter Weil
Date: Dec 22, 2023 8:31AM


It's also worth noting that the way focus is handled in the <dialog> element is more…interesting… than you might expect:

https://www.matuzo.at/blog/2023/focus-dialog/

And if you choose to focus on the <dialog> element itself, don't use tabindex.

> On Dec 22, 2023, at 7:01 AM, Birkir R. Gunnarsson < <EMAIL REMOVED> > wrote:
>
> Goodness me, I forgot to mention that! Thanks, Steve!
>
> On 12/22/23, Steve Green < <EMAIL REMOVED> > wrote:
>> It's important to use the JavaScript showModal method to launch the
>> <dialog>, otherwise it's not modal. The vast majority of websites we test
>> get this wrong.
>>
>> Steve Green
>> Managing Director
>> Test Partners Ltd
>>
>>
>>