E-mail List Archives
Re: Placing focus on form element
From: Jared Smith
Date: May 9, 2017 1:10PM
- Next message: Lovely, Brian (CONT): "Re: Placing focus on form element"
- Previous message: Lovely, Brian (CONT): "Placing focus on form element"
- Next message in Thread: Lovely, Brian (CONT): "Re: Placing focus on form element"
- Previous message in Thread: Lovely, Brian (CONT): "Placing focus on form element"
- View all messages in this Thread
> When the modal opens, focus is placed on the modal container, which in this case is the actual form element.
> I can't find any clarification as to this being correct or not.
The *draft* ARIA practices document provides documentation on this -
http://w3c.github.io/aria-practices/#dialog_modal
They recommend focusing the first interactive control within the
dialog, or if the first interactive control is preceded by important
text that can't be associated to that control, that focus be set to
the first reasonable block of text in the dialog (such as the dialog
title text, first paragraph, etc. with tabindex="-1"). I'm not really
sure why in this case they don't recommend setting focus to the dialog
element itself - this seems most logical to me.
Jared
- Next message: Lovely, Brian (CONT): "Re: Placing focus on form element"
- Previous message: Lovely, Brian (CONT): "Placing focus on form element"
- Next message in Thread: Lovely, Brian (CONT): "Re: Placing focus on form element"
- Previous message in Thread: Lovely, Brian (CONT): "Placing focus on form element"
- View all messages in this Thread