E-mail List Archives
Re: Accessible Modal
From: Birkir R. Gunnarsson
Date: May 19, 2015 2:56PM
- Next message: Sean Curtis: "Re: Accessible Modal"
- Previous message: Jonathan Avila: "Re: Accessible Modal"
- Next message in Thread: Sean Curtis: "Re: Accessible Modal"
- Previous message in Thread: Jonathan Avila: "Re: Accessible Modal"
- View all messages in this Thread
No, it wouldn't.
The problem with the screen readers is that they render the document
content into its off-screen model, where the user can interact with it
just like a Word document on steroids.
You can restrict keyboard / focus behavior but you have to be able to
remove the background content from the off-screen modal in the screen
reader.
When you use display: none or visibility: hidden this is not a problem.
But when you use modals (create an overlay on-screen) it is hard to
replicate that behavior for a screen reader.
The only way to do this is to put the modal content into a seperate
container, put aria-hidden="true" on the entire background content,
and expose the modal content until user dismisses it.
Sailesh, I see what you are saying .. I just wish that this were
possible because sometimes it would be so much easier to implement
screen reader modal behavior if you could override aria-hidden="true"
by a child element.
I would also like to lose 40 pounds and win a million dollars.
Life is what it is.
On 5/19/15, Greg Gamble < <EMAIL REMOVED> > wrote:
> As to tabbing out of a modals focus. What about capturing the last tab
> position on the modal then refocusing it back, on a blur event, to the
> first tab position?
> Would this technique work on restricting a screen reader to the modal?
>
> Greg
>
>
>
- Next message: Sean Curtis: "Re: Accessible Modal"
- Previous message: Jonathan Avila: "Re: Accessible Modal"
- Next message in Thread: Sean Curtis: "Re: Accessible Modal"
- Previous message in Thread: Jonathan Avila: "Re: Accessible Modal"
- View all messages in this Thread