Skip to content

Some alerts cannot be read properly using a screenreader #5288

Closed

Description

  • VSCode Version: insiders latest
  • OS Version: Windows 10 build latest

Steps to Reproduce:

  1. Start with a new copy of VS Code.
  2. Open, or create, a file with the .cs (c#) extension.
  3. An alert pops up, telling you you need to download an extension to get support for this or so. I got this from the docs.
  4. Try to read the alert and fail :)

Expected behavior:

  • The alert is read out loud or at least actionable using a screenreader.

Perceived result:

  • The alert is not read, cannot be interacted with in any way I've been able to figure out and is not announced either. Unless you go merrily hopping through the accessibility tree you won't even see an alert is there.

Not sure if it concerns just this type of alert, I think this may be happening all over the place for this kind of control.

Activity

  1. added
    accessibility
    on Apr 15, 2016
  2. added
    info-needed
    on Apr 15, 2016
  3. bpasero commented on Apr 15, 2016

    @bpasero
    Contributor

    Florian Beijers (@zersiax) whenever an alert shows up in VS Code we set its text content to an aria-alert container. Testing with NVDA I can get the alert text to be read when it happens. What screen reader are you using?

  4. zersiax commented on Apr 15, 2016

    @zersiax
    Author
  5. bpasero commented on Apr 15, 2016

    @bpasero
    Contributor

    Yes, sometimes the alert does have controls embedded. Do you have a suggestion how to handle those in the alert? The actions are accessible with tab keyboard navigation and announce itself when they get focus.

    Still, it seems to me there is a general issue of alerts sometimes not being read and sometimes they are? If so, this sounds like an issue with the screen reader and how it handles the ARIA ROLE alert.

    We fill an element like this:

    <div role="alert" aria-atomic="true">the alert message</div>

  6. bpasero commented on Apr 15, 2016

    @bpasero
    Contributor

    One thing that is worth mentioning is that we seem to abuse the use of alert a little bit for workarounds for other accessibility reason. E.g. I see that suggestions from intellisense also end up in there. I wonder if the flood of alerts in the system cause the screen reader to throttle this.

    alexandrudima maybe you can comment how often the alert is being triggered from the editor?

  7. zersiax commented on Apr 15, 2016

    @zersiax
    Author
  8. bpasero commented on Apr 15, 2016

    @bpasero
    Contributor

    Well but how do you get aware of the fact that there is an alert?

  9. zersiax commented on Apr 15, 2016

    @zersiax
    Author
  10. bpasero commented on Apr 15, 2016

    @bpasero
    Contributor

    Ok so the issue is that the alert is there but then another thing triggers another alert and so our alert gets lost. We could maybe introduce more than one alert container but I am not sure what this means.

    Until then I suggest to not abuse the alert as we do it now. alexandrudima what do you think?

  11. removed this from the Backlog milestone on Apr 15, 2016
  12. 7 remaining items

  13. zersiax commented on Apr 28, 2016

    @zersiax
    Author
  14. alexdima commented on Apr 28, 2016

    @alexdima
    Member

    Florian Beijers (@zersiax) The entire Alt+F1 is probably not needed any more except to communicate that Ctrl+M can escape the Tab trapping in the editor. The experimental screen reader support is since 1.0 enabled by default.

  15. alexdima commented on Apr 28, 2016

    @alexdima
    Member

    #5412 tracks that I should remove the out-of-date text

  16. zersiax commented on Apr 28, 2016

    @zersiax
    Author
  17. bpasero commented on Apr 29, 2016

    @bpasero
    Contributor

    Florian Beijers (@zersiax) so you say the fact that you click back into the editor quickly after the alert pops up might have caused the screen reader to stop reading out the alert?

  18. zersiax commented on Apr 29, 2016

    @zersiax
    Author
  19. bpasero commented on Apr 29, 2016

    @bpasero
    Contributor

    Florian Beijers (@zersiax) understood. alexandrudima so maybe we should only have the accessibility help in the editor once and afterwards we do not have it anymore so that it is not being read each time you focus the editor?

  20. bpasero commented on May 25, 2016

    @bpasero
    Contributor

    alexandrudima ping, should we show the Alt+F1 help only once the first time the user clicks into the editor?

  21. alexdima commented on May 26, 2016

    @alexdima
    Member

    I can remove it completely, and handle its discoverability through documentation. Let's track its removal in #6908

  22. bpasero commented on May 26, 2016

    @bpasero
    Contributor
  23. bpasero commented on May 30, 2016

    @bpasero
    Contributor

    Florian Beijers (@zersiax) I suggest you give our next release a try and see if #6908 improved this.

  24. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilityinfo-needed

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions