Skip to content

inform screen reader of notebook inline suggestion #176288

Closed

Description

We should play an audio cue and will also want the screen reader to read the content immediately like we will do for the editor tracked by #167348

Activity

  1. changed the title [-]play audio cue for notebook inline suggestions[/-] [+]inform screen reader of notebook inline suggestion[/+] on Mar 6, 2023
  2. added
    bug
    accessibility
    on Mar 6, 2023
  3. meganrogge commented on Oct 2, 2023

    @meganrogge
    CollaboratorAuthor

    Peng Lyu (@rebornix) Aaron Munger (@amunger) what are your thoughts here/ has there been any headway made on this?

  4. amunger commented on Mar 11, 2024

    @amunger
    Collaborator

    Megan Rogge (@meganrogge) - I assume we should follow what we did for #167348, but it's hard to follow what the result was there. It looks like the last PR that was referenced was reverted, and I don't see the applicable code in the ghostTextWidget. Was there a final decision on behavior somewhere or a TPI? And is there another PR that I could use for reference?

  5. meganrogge commented on Mar 11, 2024

    @meganrogge
    CollaboratorAuthor

    Hi Aaron Munger (@amunger), we control the one in the editor with a setting. here's the implementation of that

    if (this.editor.getOption(EditorOption.screenReaderAnnounceInlineSuggestion)) {
    this.provideScreenReaderUpdate(state.primaryGhostText.renderForScreenReader(lineText));
    }

  6. amunger commented on Mar 12, 2024

    @amunger
    Collaborator

    the same code is hit for a notebook cell, the notification sound is played for me, and it looks like the aria alert is being added.
    image

    I don't ever hear any alert text on either of my machines and haven't been able to figure out why so I can't check, but is it not reading the ghost text for notebook cells?
    Is there something else that's missing?

  7. added
    info-needed
    on Mar 12, 2024
  8. meganrogge commented on Mar 13, 2024

    @meganrogge
    CollaboratorAuthor

    what is the value of lineText when that gets hit?

  9. meganrogge commented on Mar 13, 2024

    @meganrogge
    CollaboratorAuthor

    do you hear the alert when it's in the editor?

  10. amunger commented on Mar 13, 2024

    @amunger
    Collaborator

    lineText is whatever else is on the line.
    On my laptop the text editor ghost text is not read either.

    I tried again on my desktop pc, and now the ghost text is read for both notebook cells and text editors. Are you seeing something different?

  11. meganrogge commented on Mar 13, 2024

    @meganrogge
    CollaboratorAuthor

    Sounds like an issue with the screen reader/ setup you have. I would suggest using the speech to text viewers rather than the audio version as then you won't wonder if it's an issue with your setup or the code.

  12. amunger commented on Mar 13, 2024

    @amunger
    Collaborator

    speech viewer is what I'm using, I also checked the actual audio to make sure it wasn't there either

  13. removed
    info-needed
    bug
    on Mar 13, 2024
  14. amunger commented on Mar 13, 2024

    @amunger
    Collaborator

    this appears to be working as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilitynotebook-ipynb

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions