WebAIM - Web Accessibility In Mind

E-mail List Archives

Opening modal window without user action

for

From: Bruno Girard
Date: Mar 23, 2016 9:02AM


Hello,

I want to know, according to you, if the following behavior is a fail to
WCAG, if so, under which success criteria and why.

In our website, marketing wants to ask users if the want to answer a survey
after their visit.

The actual solution is a modal window that appears after a delay without
any user action. I agree that this is not the ideal solution but I have no
choice to deal with it. The actual modal window is not accessible, but in a
short term, as a quick win, I would make it accessible with the following
requirements (at the minimum):

1. Upon display, modal window container will received focus, this made
by Javascript.
2. What is under this window would not reachable when the modal is
displayed.
3. All the content in the window would be accessible.
4. In the modal, buttons Yes or No would be offerred at a question to
ask if user wants to answer a short survey at the end of his visit. Upon
click "Yes", a new browser Tab opens with survey and the modal window
close. User is notified of new window opening before click. Upon click
"No", the modal window close.
5. If possible, after modal window close, the focus will still be on the
same element before modal window automatic opening. Is it a fail if it
doesn't return to this element?

I have read this failure document:
https://www.w3.org/TR/WCAG20-TECHS/F52.html

I already know that it is a fail to open a new window upon load. In my
case, I have a delay. Does it fail?

Thanks in advance for your answers.

Happy Easter!

Bruno