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

The webview find widget is focusable while hidden #67563

Closed
Tyriar opened this issue Jan 30, 2019 · 5 comments · Fixed by #68463
Closed

The webview find widget is focusable while hidden #67563

Tyriar opened this issue Jan 30, 2019 · 5 comments · Fixed by #68463
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues bug Issue identified by VS Code Team member as probable bug verified Verification succeeded webview Webview issues
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Jan 30, 2019

#67509

Repro:

  1. Open PR ext description page
  2. Focus something, shift+tab until you hit the start of the screen

There are 4 focusable items, close, next match, previous match and the find input.

@Tyriar Tyriar added accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues webview Webview issues labels Jan 30, 2019
@mjbvz mjbvz added this to the February 2019 milestone Jan 30, 2019
@cleidigh
Copy link
Contributor

@mjbvz
Would you like me to start on this?

@mjbvz
Copy link
Contributor

mjbvz commented Jan 31, 2019

Yes please. It is too late to get a fix in for the January VS Code release but you can submit a PR any time and we'll try to get this fixed for February

@cleidigh cleidigh assigned cleidigh and mjbvz and unassigned mjbvz and cleidigh Jan 31, 2019
@cleidigh
Copy link
Contributor

LOL ... my Dragon dictation did the equivalent of a butt dial , deleted assignments and pasted an eMoji

sorry about that :-P

@cleidigh
Copy link
Contributor

@Tyriar
@mjbvz
FYI: started on this and I can reproduce and see it.

  • simpleFind transitions in and out with animation, hidden only because of z-index and/or overflow.
  • The widget always has display type:flex , therefore the four tabs stops for the buttons and input are always in the tabIndex order
  • fix should be simple, however, there is an interaction between the animation and the display mode
    such that simultaneously going from display:none => flex messes up the animation. I'm working on separating the display mode from the transition to see if that will work.

I have to do more experiments , May have a question or two later...

@cleidigh
Copy link
Contributor

cleidigh commented Feb 11, 2019

See PR: #68463

Verification:
Use a screen reader with screen output on so you can see and track each tab stop

  • Open the new pull request extension page
  • Click on the upper pane to begin focus there
  • Tab through the various toolbar buttons , after dependencies the next tab SHOULD land on
    With the webview not the simpleFind widget.
  • Verify showing and hiding simpleFind has smooth animation as before

Note: When focuses on bottom for web view pane , screen readers output a bunch of base64 encoded text (see truncated output lines below). But I think this is an accessibility bug, if you guys agree I'll post an issue.

NVDA Output: with visibility fix (correct output, no tab stops within the hidden simpleFind)

tool bar
Disable▼  button
Uninstall  button
tool bar
Contributions  button  Lists contributions to VS Code by this extension
Changelog  button  Extension update history, rendered from the extension's 'CHANGELOG.md' file
Dependencies  button  Lists extensions this extension depends on
frame
frame
scroll to top
button  data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0D%0A%3Ch.... (truncated)
graphic
Extension: GitHub Pull Requests - vscode - Code - OSS Dev  document
button
scroll to top

NVDA Output: original scenario without fix (can see tabs stops in widget)

the marketplace
link  https://aka.ms/vscodepr-download
Extension: GitHub Pull Requests - vscode - Code - OSS Dev
tool bar
Disable▼  button
Uninstall  button
tool bar
Contributions  button  Lists contributions to VS Code by this extension
Changelog  button  Extension update history, rendered from the extension's 'CHANGELOG.md' file
Dependencies  button  Lists extensions this extension depends on
Find  edit  Find
Find
blank
Previous match
button  Previous match
Next match
button  Next match
Close
button  Close
frame
frame
list  with 7 items
the marketplace
link  https://aka.ms/vscodepr-download
scroll to top
button  data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0D%0A%3Chtml%20l... ( truncated)
list  with 7 items

@mjbvz mjbvz added the bug Issue identified by VS Code Team member as probable bug label Feb 12, 2019
mjbvz added a commit that referenced this issue Feb 12, 2019
Hide simpleFind with visibility to remove from tab order.  Fixes: #67563
@Tyriar Tyriar added the verified Verification succeeded label Feb 25, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 29, 2019
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 bug Issue identified by VS Code Team member as probable bug verified Verification succeeded webview Webview issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants