You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some alerts cannot be read properly using a screenreader #5288
Open, or create, a file with the .cs (c#) extension.
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.
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.
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?
This is the strange part, it is hit and miss for me. Sometimes I hear
the alert, sometimes I don't. I use NVDA as well.
Even if the alert is heard though, are there actionable controls in
these alerts sometimes? A link or button one can click? If so, those
won't be clickable properly even if the role=alert gets fired...
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.
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?
The suggestions for intelliSense being an alert was actually a bit of
a hack because of a chromium bug that in the last few days has seen a
few improvements, so we may be able to take those out soon.
When I was in Redmond last week I did a demo for some of the on-sight
folks and ran into the general issue of sometimes losing track of
where I am in the program. Does this toolbar belong to the explorer or
the editor? Is this treeview attached to toolbar A or toolbar B? How
do I quickly go to the working files list?
This led me to the idea of making regions you can cycle between using
a hotkey. For example, using the f6 hotkey in Windows Explorer jumps
you from the address bar, to the treeview of folders, to the searchbox
etc.
I think this will be a very welcome addition to Code's accessibility
layer as well, and it would solve the alert problem too. You can just
jump to the region that holds the alert and get the keyboard focus to
go there. This way a user can read the alert whenever they want to
(the disadvantage of role-alert is that once it's spoken once you
can't really get it back unless you trigger it again), get to the
actionable controls and you make Code about 3 times easier to navigate
as well.
I realize this is a separate thing altogether but it does solve this
particular issue as well once implemented I think. Any thoughts?
That is a trickier one. As I said, the alert only really shows up
once. I guess the only thing we can do if we go with the idea I just
came up with is notify the alert is there and get the user to manually
move to its region once they need it. The problem with that approach
is that a user might miss the notification and won't know the alert is
there ...I briefly considered a small 'blip' sound to let a user know
an alert has popped up but I'not sure how spammy that would be with
the amount of alerts we are currently using. Do any of you have ideas
for this one? :)
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?
Well ...if I remember correctly doing this the first time toggles
screenreader features to true, right? Maybe only show it when
screenreader is false. This seems counter-intuitive but walk with me
here.
A user who is using a screenreader will want these features enabled,
and after that its very unlikely they will need the hotkey again since
it just tells you screenreader support is on.
So, when this flag is already toggled on there's no need to read out
that label. Does that make sense?
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.
Hi,
I think the control+m thing might be better stowed somewhere in a
documentation page, this is not something people would need to be
reminded about every time the editor gains focus I think. I liked your
suggestion about the statusbar thing, btw :)
I just did some checking and it doesn't seem to come up with this
message when you for example accept an autoComplete suggestion, thats
good at least :) Speaking of, that bug you ran into on that front
should be fixed in latest chromium :)
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?
I don't click sir :) What I was referring to is the ctrl hotkey, which
stops screenreader speech completely. Its often used if a screenreader
starts reading outa bit of text that you don't care about or have
already heard. You can just interrupt it and go on with your work,
more efficient that way. But in this case the inclusion of the whole
'press alt+f1" etc. will make people press that hotkey if they
quickly want to resume working after having run something like git
commit which would make them not hear the alert as well.
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?
Activity
bpasero commentedon Apr 15, 2016
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?
zersiax commentedon Apr 15, 2016
bpasero commentedon Apr 15, 2016
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>bpasero commentedon Apr 15, 2016
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?
zersiax commentedon Apr 15, 2016
bpasero commentedon Apr 15, 2016
Well but how do you get aware of the fact that there is an alert?
zersiax commentedon Apr 15, 2016
bpasero commentedon Apr 15, 2016
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?
7 remaining items
zersiax commentedon Apr 28, 2016
alexdima commentedon Apr 28, 2016
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.
alexdima commentedon Apr 28, 2016
#5412 tracks that I should remove the out-of-date text
zersiax commentedon Apr 28, 2016
bpasero commentedon Apr 29, 2016
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?
zersiax commentedon Apr 29, 2016
bpasero commentedon Apr 29, 2016
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?
bpasero commentedon May 25, 2016
alexandrudima ping, should we show the Alt+F1 help only once the first time the user clicks into the editor?
alexdima commentedon May 26, 2016
I can remove it completely, and handle its discoverability through documentation. Let's track its removal in #6908
bpasero commentedon May 26, 2016
alexandrudima nice!
bpasero commentedon May 30, 2016
Florian Beijers (@zersiax) I suggest you give our next release a try and see if #6908 improved this.