Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set focus to modal usage instructions #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rajeshduggal
Copy link

When the modal is displayed to the screen, the focus should be placed at the top of the modal content. Rather than first field as is does with JAWS 14.

@gdkraus
Copy link
Owner

gdkraus commented Feb 12, 2015

I'll look at this some. As for where to set the focus, I was following the W3C recommendations.

http://www.w3.org/TR/wai-aria-practices/#modal_dialog

"When the dialog box is opened, focus should be set to the first tab focusable element within the dialog. If there is no tab focusable element within the dialog box contents, set the focus to the item that is used to cancel or close the dialog."

I haven't tested screen reader compatibility on this for a while, but doing this, at least in the past, had cause the screen reader to announce the description. I'll double check how all of the screen readers are currently handling this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants