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

inform screen reader of notebook inline suggestion #176288

Closed
meganrogge opened this issue Mar 6, 2023 · 10 comments
Closed

inform screen reader of notebook inline suggestion #176288

meganrogge opened this issue Mar 6, 2023 · 10 comments
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues notebook-ipynb
Milestone

Comments

@meganrogge
Copy link
Contributor

meganrogge commented Mar 6, 2023

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

@meganrogge meganrogge changed the title play audio cue for notebook inline suggestions inform screen reader of notebook inline suggestion Mar 6, 2023
@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues notebook-ipynb labels Mar 6, 2023
@meganrogge meganrogge added this to the On Deck milestone Mar 6, 2023
@meganrogge
Copy link
Contributor Author

@rebornix @amunger what are your thoughts here/ has there been any headway made on this?

@amunger
Copy link
Contributor

amunger commented Mar 11, 2024

@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?

@meganrogge
Copy link
Contributor Author

meganrogge commented Mar 11, 2024

Hi @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));
}

@amunger
Copy link
Contributor

amunger commented Mar 12, 2024

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?

@amunger amunger added the info-needed Issue requires more information from poster label Mar 12, 2024
@meganrogge
Copy link
Contributor Author

what is the value of lineText when that gets hit?

@meganrogge
Copy link
Contributor Author

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

@amunger
Copy link
Contributor

amunger commented Mar 13, 2024

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?

@meganrogge
Copy link
Contributor Author

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.

@amunger
Copy link
Contributor

amunger commented Mar 13, 2024

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

@amunger amunger removed info-needed Issue requires more information from poster bug Issue identified by VS Code Team member as probable bug labels Mar 13, 2024
@amunger
Copy link
Contributor

amunger commented Mar 13, 2024

this appears to be working as intended

@amunger amunger closed this as completed Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues notebook-ipynb
Projects
None yet
Development

No branches or pull requests

3 participants