Skip to content

[Accessibility] Reconsider the UI design for {"editor.screenReaderAnnounceInlineSuggestion": true} #175105

Closed

Description

CC Megan Rogge (@meganrogge)

I have tested copilot with {"editor.screenReaderAnnounceInlineSuggestion": true}. Thank you very much for your hard work. I have some suggestions.

  1. Prompting the suggestion via dialog box popup may not be effective.

Because the dialog box needs to be either accepted or dismissed explicitly in order to keep typing, screen reader users will experience extra delays. I don't recommend using dialog widget for this feature.

  1. There is a significant and noticable delay between hint audio cue and the actual suggestion content popup.

  2. "OK" button is automatically read aloud instead of the actual suggestion when the dialog pops up.

  3. My typing does not work after clicking "OK" button and coming back to original editor cursor position.

System Info

Version: 1.76.0-insider (system setup)
Commit: 7b6b686
Date: 2023-02-22T05:24:32.270Z
Electron: 19.1.10
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

Activity

  1. meganrogge commented on Feb 22, 2023

    @meganrogge
    Collaborator

    Thanks for trying this out and for the feedback.

    When I tested this feature, I found it disruptive and was warned against this approach by Isidor Nikolic (@isidorn) and Henning Dieterichs (@hediet) , but thought that you had said there are ways around the disruption for advanced screen reader users.

    Prompting the suggestion via dialog box popup may not be effective.
    Because the dialog box needs to be either accepted or dismissed explicitly in order to keep typing, screen reader users > will experience extra delays. I don't recommend using dialog widget for this feature.

    AFAIK, this is how aria-live alerts work. I tried to add those properties to the element directly and they were not announced by the screen reader.

    Re the other notes, I tested this on macOS with VoiceOver and did notice these happening. Which screen reader were you using?

    We can keep thinking about this and iterating on a better approach.

  2. added
    accessibility
    under-discussion
    on Feb 22, 2023
  3. jooyoungseo commented on Feb 22, 2023

    @jooyoungseo
    Author

    Megan Rogge (@meganrogge) -- I think there has been a miscommunication between us regarding this implementation. Having a separate overlay dialog box can cause multiple side effects and accessibility barriers in this context. I am sorry, but I think I tested your PR for the general suggestions that does not pop up the overlay dialog box. However, I was not able to use my copilot or any extensions for the dev VSCode when I was testing your PR.

    I used JAWS for this test, but regardless of whether it is read or not, the dialog approach needs to be seriously reconsidered. I can demonstrate this issue when we meet.

    I tried to add those properties to the element directly and they were not announced by the screen reader.

    I cannot quite understand why it did not work. We may want to debug this first.

  4. meganrogge commented on Feb 22, 2023

    @meganrogge
    Collaborator

    Yes I agree that the current experience is very bad when that setting is enabled, so I'm reverting the PR. I see that we use aria-live: assertive in other places, so it should be possible.

  5. added
    feature-request
    and removed
    under-discussion
    on Feb 22, 2023
  6. meganrogge commented on Mar 16, 2023

    @meganrogge
    Collaborator

    I believe this is now fixed with #175823

  7. removed
    feature-request
    on Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibility

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions