WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Dialog semantics and aria?

for

From: Bryan Garaventa
Date: Apr 28, 2014 8:42AM


No worries, I didn't say that role=dialog should never be used, just that
there are keyboard interaction and feedback differences to be aware of,
since this often catches screen reader users off guard.

I recommended role=region because it is supposed to provide beginning and
ending boundary text information feedback for screen reader users, though I
agree, this currently isn't working for NVDA, which there is an open bug
about.

Regardless whether you use either method, it's the content that needs to be
accessible, and the method of rendering that is important here, so when the
dialog is rendered, the background content should be hidden properly, focus
should be set appropriately for keyboard users, the content must all be
accessible in an intuitive manner, the dialog must be closable from the
keyboard, and focus should return to the triggering element after it closes
if a triggering element is present.

The rest is just semantics.