WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: aria-hidden for content outside modal dialog?

for

From: Patrick H. Lauke
Date: Oct 16, 2015 6:49AM


On 16/10/2015 13:39, Robert Fentress wrote:
> Hi, all.
>
> I just wanted to make sure I was conceptualizing something properly. In a
> modal dialog, one should apply aria-hidden to all content not in the dialog
> itself, right? Applying aria-hidden only to focusable elements outside the
> dialog would not be sufficient, since one could still read the full
> contents of the page using the Virtual PC Cursor in JAWS or Browse mode in
> NVDA, etc.

Yes.

> Or is that not a big deal, or expected behavior? Any sense of
> things here?

Basically, you want to prevent a user from getting out of the modal. If
you don't hide everything else, they may still end up there by accident
and be confused/annoyed.

> On a side note, if this is the case, then that means that usually dialogs
> will not be able to be inserted in situ on the page at a point right after
> their triggering control, since, I think, you cannot have an element with
> aria-hidden="false" within an element with aria-hidden="true".

Sadly, correct.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke