-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Accessibility: Autofocused elements #11515
Comments
FWIW, I would prefer this change in functionality (removing autofocus) be opt-in.
|
In my opinion/experience this is entirely contextual. It can be confusing if done clumsily, but if you make sure the screen reader reads the right text to the user, i.e. "Create an Index Pattern" -> enter key -> "Enter the index pattern name", then it will make sense and save a lot of time. That is to say, each case needs to be considered. We can't blanket remove all autofocus, but the practice should be done with care and consideration |
I think Discover is an app where autofocusing the query bar makes a ton of sense, since the whole point of that app is to let you explore your data. What do you all think of this solution:
|
I've just checked all our autofocus instances and I would consider them all to be fine. Also with providing proper landmark navigation to all of Kibana, there is not the problem, that you would need to "shift-tab" to the beginning of the document, because you can make use of the landmark navigation to jump to any part of the application you like. Thus closing this, and if there are more specific cases where the autofocus might break things and we want to discuss whether to remove it in that place, let's open a new issue for that case. |
Problem
On most pages, keyboard focus is automatically set to a particular page element (e.g., the search field on the "Discover" page). Automatically setting focus may cause confusion for keyboard users. It also means keyboard users must navigate backward (Shift + Tab) to navigate to the start of the page.
However, autofocused elements aren't always bad for accessibility! Per @aphelionz's comment below, we can use autofocus to create intuitive user experiences for people using screen readers.
If sighted users find auto-focused elements useful, then maybe we can create a settings option for opting in (or out) of this behavior.Audit
Search for
autofocus
,input-focus
, andselect()
for trouble spots.The text was updated successfully, but these errors were encountered: