WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Semi-inert modals

for

From: Bryan Garaventa
Date: Apr 4, 2022 11:05AM


Hi,
It depends on what you mean by support.

The accessibility API can map the dialog element to the dialog role, which will provide the same feedback if the dialog is properly labelled. This is how an H2 element has the same feedback as role="heading" + aria-level="2", and to screen reader users there is no difference.

However, for this to truly be accessible, a dialog has to manage focus appropriately, which means that scripting is needed to do so. For the browsers to do this automatically, they would have to guess at what is meant to receive focus within the dialog when it is rendered, which will likely conflict with actual focus handling that is built into the dialogs. It may be possible to override this to some extent, but doing so would likely be very buggy.

Bryan Garaventa
Principal Accessibility Architect
Level Access, Inc.
<EMAIL REMOVED>
415.624.2709 (o)
www.LevelAccess.com

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of <EMAIL REMOVED>
Sent: Saturday, April 2, 2022 1:03 PM
To: 'WebAIM Discussion List' < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Semi-inert modals

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


If Firefox and Safari finally supported the dialog element, would this simplify authoring accessible modal dialogs? It seems to me that this would be so.

Jeff Gutsell