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

Idea: Autofocus #54

Open
edmorrish opened this issue Nov 22, 2019 · 1 comment
Open

Idea: Autofocus #54

edmorrish opened this issue Nov 22, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@edmorrish
Copy link
Contributor

edmorrish commented Nov 22, 2019

For accessibility reasons (screenreader support) it is sometimes useful to have the browser's focus linked to the focus state of the LRUD tree.

At the moment to do this you can set the tabindex for every element in the LRUD tree to "-1" and then add a listener for the "focus" event that sets the DOM focus to match the element, we could maybe make this process a little easier by having a config option to automatically add the tabindexes and keep the browser focus state in sync with the LRUD focus.

Any thoughts?

@edmorrish edmorrish added the enhancement New feature or request label Nov 22, 2019
@ben-whitfield
Copy link
Contributor

ben-whitfield commented Nov 22, 2019

Hey @edmorrish . We had a vaguely similar issue while working on something else this week which may have been easier to solve with this approach. Actually this wouldn't have helped at all but I've no major objection to the idea. Any other thoughts from others welcome :-)

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

No branches or pull requests

2 participants