WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Opens a simulated dialog

for

From: glen walker
Date: Aug 1, 2018 9:38PM


The webaccessibility.com site is not an official w3 site nor a spec, even
if it's from a reputable company like Level Access and has great
information.

If a button does not indicate it will open a dialog, then from a strict
compliance perspective, it's not a WCAG failure. However, if the dialog
itself that pops up does not announce itself, then that would definitely be
a WCAG violation.

Should a button indicate it has a dialog? Sure, that would be great, but
indicating a dialog will popup would be great for *all* users, not just
screen reader users.

The new values of aria-haspopup
<https://www.w3.org/TR/wai-aria/#aria-haspopup> has a "dialog" value to do
exactly what you're asking about. Support for it might not be widespread
yet, but setting it would be a good idea. But again, that attribute only
helps screen reader users. It'd be nice if there was an indication for all
users.

Glen