E-mail List Archives
Re: Semi-inert modals
From: Bryan Garaventa
Date: Apr 4, 2022 11:05AM
- Next message: Bryan Garaventa: "Re: expectations role=group / role=region"
- Previous message: Birkir R. Gunnarsson: "Re: expectations role=group / role=region"
- Next message in Thread: Kian Badie: "Re: Semi-inert modals"
- Previous message in Thread: jeffgutsell@fuse.net: "Re: Semi-inert modals"
- View all messages in this Thread
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
- Next message: Bryan Garaventa: "Re: expectations role=group / role=region"
- Previous message: Birkir R. Gunnarsson: "Re: expectations role=group / role=region"
- Next message in Thread: Kian Badie: "Re: Semi-inert modals"
- Previous message in Thread: jeffgutsell@fuse.net: "Re: Semi-inert modals"
- View all messages in this Thread