WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Placing focus on form element

for

From: Birkir R. Gunnarsson
Date: May 10, 2017 6:29AM


There have been some issues, e.g. in Jaws with setting focus on the
dialog continer, I think the focus order got blocked or something.
Apart from actual assistive technology bugs I don´t see why it
wouldn´t be acceptable to place focus on the container.

Just give the form element role of dialog and an accessible name using
aria-label (if it is a search pop up, just use aria-label="search" and
skip the additional ARIA search landmark inside, too many landmarks
actually clutter up the screen reader interface and make webpages
harder to use)




On 5/9/17, Lovely, Brian (CONT) < <EMAIL REMOVED> > wrote:
> Thanks Jared! There are a number of issues with the current markup. There's
> no role of dialog either. I'd like to see them refactor it like this:
>
> Container with role of dialog
>
> Close button
>
> Form with role of search.
>
> ...and place focus on the close button when the modal opens.
>
>