WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Overlay search box and screen reader modes

for

From: Patrick H. Lauke
Date: Sep 10, 2019 12:18PM


On 10/09/2019 19:07, Jonathan Avila wrote:
> I've heard some consensus though is that if the dialog has a proper role and focus stays in the box it would not be a WCAG failure though to not use aria-hidden on the content outside of it.

Tough one. Could arguably say that it's a failure of 4.1.2 because the
state/property of the underlying page being inert/inactive/hidden isn't
conveyed.

> I guess that is the real question. It's not always so simple to move the content to its own sibling div of the body and assistive technology like screen readers are getting better about hiding content outside of dialogs when aria-modal is present. So it seems maybe better solved at the AT level.

Yes, complementing the role="dialog" with aria-modal="true" (where
supported) would also work (in modern browser/AT combos that support it).

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