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

Focus management #34

Open
rianrietveld opened this issue Mar 21, 2020 · 0 comments
Open

Focus management #34

rianrietveld opened this issue Mar 21, 2020 · 0 comments

Comments

@rianrietveld
Copy link

rianrietveld commented Mar 21, 2020

The form is in fact just one page with the content dynamically loaded. This can become an issue for keyboard or screen reader users. If you use that tab key to junp form focusable element to focusable element , the focus should stay logically and predictable. There are a few cases where there is loss of focus.

1: After an error message is generated: put the focus back on the input field that generated the error. Note I'm not familiar with Vue, but you probably can use vanilla JavaScript for this.

2: After a form step submit the focus is lost. Put the focus on the first element. That is now the back button, maybe not the best choice. We could give the <div id="app"> a tabindex=0, like <div id="app" tabindex="0">, then the focus always starts at the top of the page after a submit.

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

No branches or pull requests

1 participant