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

Quick input: consider to better indicate list focus #93916

Closed
Tyriar opened this issue Mar 31, 2020 · 24 comments
Closed

Quick input: consider to better indicate list focus #93916

Tyriar opened this issue Mar 31, 2020 · 24 comments
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues quick-pick Quick-pick widget issues under-discussion Issue is under discussion for relevance, priority, approach

Comments

@Tyriar
Copy link
Member

Tyriar commented Mar 31, 2020

#93641

Version: 1.44.0-insider (user setup)
Commit: d7d1147
Date: 2020-03-31T08:23:56.446Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18362


Using NVDA:

  1. ctrl+p
  2. 'term ' (announced: 2 results)
  3. Press down (announced: term list, 1.1 node, ...)
  4. Press tab (silence)
  5. Press tab, the icon is selected (toolbar, rename terminal button, ...)
@Tyriar Tyriar added the quick-pick Quick-pick widget issues label Mar 31, 2020
@Tyriar
Copy link
Member Author

Tyriar commented Mar 31, 2020

The same happens with other quick picks too like go to file.

@bpasero bpasero assigned isidorn and chrmarti and unassigned bpasero Mar 31, 2020
@bpasero bpasero added the accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues label Mar 31, 2020
@bpasero bpasero self-assigned this Mar 31, 2020
@bpasero bpasero added this to the March 2020 milestone Mar 31, 2020
@isidorn
Copy link
Contributor

isidorn commented Mar 31, 2020

I can reproduce this, and we are doing everything correct here imho just NVDA decides not to read anything. VoiceOver behaves correctly.
Idealy the first tab would focus imedaly on the icon, not sure if that is possible though.

@Tyriar
Copy link
Member Author

Tyriar commented Mar 31, 2020

@isidorn what does voiceover do at step 4?

@chrmarti
Copy link
Collaborator

chrmarti commented Apr 1, 2020

The first tab focuses on the list. My understanding is that that is how it should be from an accessibility point of view. @isidorn ?

@bpasero
Copy link
Member

bpasero commented Apr 1, 2020

I am not seeing an immediate issue here to fix and this is pending answer from a18y experts, so moving to April.

@bpasero bpasero added the under-discussion Issue is under discussion for relevance, priority, approach label Apr 1, 2020
@bpasero bpasero modified the milestones: March 2020, April 2020 Apr 1, 2020
@Tyriar
Copy link
Member Author

Tyriar commented Apr 5, 2020

Someone else created an issue about this the same day but from the angle that it doesn't show a focus indicator #93907, we should either remove the ability to tab to the list or if that's not good from a a11y perspective we should add a special focus indicator to it (an outline around the selected item?).

@moshfeu
Copy link
Contributor

moshfeu commented Apr 5, 2020

I'm voting for outline ☝️

@chrmarti
Copy link
Collaborator

chrmarti commented Apr 7, 2020

The list does shows an outline when it has focus and there is no item focused. We usually focus an item. That's the List's built-in behavior.

@Tyriar
Copy link
Member Author

Tyriar commented Apr 7, 2020

@chrmarti there is no visual difference between implied focus because the textbox is focused:

image

and actual focus when you tab:

image

I think the second one should look like this or something similar:

image

@chrmarti
Copy link
Collaborator

chrmarti commented Apr 7, 2020

That's on purpose, by default the implied focus looks different, but because you can navigate the list with up-/down-arrows, the implied focus was changed to look the same as the focus.

Not sure what the original discussion around this was, but this makes sense to me.

@Tyriar
Copy link
Member Author

Tyriar commented Apr 7, 2020

@chrmarti to me it feels broken when you transition to this:

image

Because you lose the "real" focus indicator, combine that with NVDA not announcing anything and it felt very broken.

@chrmarti
Copy link
Collaborator

chrmarti commented Apr 8, 2020

The screenreader should already have read out the entry at that point, so it does not repeat it, I assume.

We are using aria-activedescendant to get the entry read out while the input box has focus, not sure if and how we could get screenreaders to read the entry again when the focus moves to the list.

@bpasero
Copy link
Member

bpasero commented Apr 17, 2020

I find the outline around the list item a bit weird because we do not have this kind of styling in any other list or tree widget. We typically distinguish focus via the selection color:

image

vs

image

If we have to introduce an outline I would probably rather expect that to be around the entire list widget, same as we have it when no item is selected on lists:

image

@bpasero bpasero changed the title Quick access: It takes 2 tabs to get to the icons, the first also isn't announced in a screen reader Quick input: consider to better indicate input focus and list focus Apr 17, 2020
@bpasero bpasero changed the title Quick input: consider to better indicate input focus and list focus Quick input: consider to better indicate list focus Apr 17, 2020
@isidorn isidorn removed their assignment Apr 17, 2020
@Tyriar
Copy link
Member Author

Tyriar commented Apr 17, 2020

@bpasero well the problem is we use implicit/linked focus in the quick pick but style it the same as regular focus. I still think the outline would be good because it's clear what is actually focused and this is mainly only exposed for accessibility reasons, we have also established outline to mean focus (in addition to solid bg).

Outline around textbox = textbox is focused:

image

Outline around close button = close button is focused:

image

No outline = textbox is no longer focused 🤷

image

@Tyriar
Copy link
Member Author

Tyriar commented Apr 17, 2020

cc @misolori

@miguelsolorio
Copy link
Contributor

Related to this is how our list focus/active selection can be confusing:

image

image

image

image

@Tyriar
Copy link
Member Author

Tyriar commented Apr 20, 2020

What if multi-select leveraged the same border style I'm proposed, making it a more common paradigm to have a "higher priority" focus indicator to clear up ambiguities like this.

Shift+click:

image

Ctrl+click:

image

@bpasero
Copy link
Member

bpasero commented Apr 21, 2020

That would be a model as Windows has it imho:

image

I somewhat like it but would need to try it out to provide more feedback. This would requires changes to the tree/list rendering.

//cc @joaomoreno

@joaomoreno
Copy link
Member

I like it!

@Tyriar
Copy link
Member Author

Tyriar commented Apr 21, 2020

Moved explorer request to #95768

@bpasero
Copy link
Member

bpasero commented Apr 21, 2020

@Tyriar this is not explorer specific? this applies to every list and tree?

@Tyriar
Copy link
Member Author

Tyriar commented Apr 21, 2020

@bpasero I think the implicit focus when textbox is focused is a quick pick thing?

@bpasero
Copy link
Member

bpasero commented Apr 22, 2020

@Tyriar yeah, I was referring to #95768 but I think Joao already made clear that such a change impacts every tree/list usage outside of maybe quick pick.

Still, for quick pick I would want to wait for the result of #95768 to see if we can benefit from the focus ring also for quick pick. Maybe we could still align the visuals for quick pick and other lists/trees.

@bpasero bpasero removed this from the April 2020 milestone Apr 22, 2020
@bpasero bpasero removed their assignment Oct 12, 2020
@TylerLeonhardt
Copy link
Member

Looks like we have this now (following the original steps)

Image

and hitting tab:

Image

@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues quick-pick Quick-pick widget issues under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

8 participants