Sunday, October 21, 2018

accessibility - Should a web-based non-modal dialog prevent users from leaving it via keyboard access?


Say that a dialog is non-modal, meaning that a user can use the mouse to interact with elements outside of the dialog without closing it.



Does this also mean that the user should also be able to interact with elements outside of the dialog using keyboard access, notably cycling through the elements via the Tab key?


I am looking for an authoritative source specifically addressing non-modal dialogs (not modal dialogs), especially if it relates to the web.



Answer



I think what you're looking for would fall under the "No Keyboard Trap" (SC 2.1.2) of WCAG 2.0:



"The intent of this Success Criterion is to ensure that that content does not "trap" keyboard focus within subsections of content on a Web page. This is a common problem when multiple formats are combined within a page and rendered using plug-ins or embedded applications.


There may be times when the functionality of the Web page restricts the focus to a subsection of the content, as long as the user knows how to leave that state and "untrap" the focus."



Basically, if a user can ignore the dialog and interact with background items using a mouse, they should have the same freedoms using keyboard commands as well.


As with a lot of usability issues, it depends on the case. It would help to understand what your use of a non-modal dialog is in order to provide a more comprehensive answer.



Source: http://www.w3.org/TR/UNDERSTANDING-WCAG20/keyboard-operation-trapping.html


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...