-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-18385] Force screen reader to read whole aria-live section on multiselect option change #3679
Conversation
…tiselect option change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I understand what aria-atomic
does, but why is it necessary here? Without it, it sounds like the screen reader will read out anything that changes in the label, but with it, it would read the entire label if any part of it changes?
Also, is it a problem that the outer .multi-select__wrapper
div has an aria-live
while the label nested inside it also has an aria-live
?
Hi @devinbinnie Can you please check and confirm. If not, can you please fix this issue too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@hmhealey It seems really odd for it to be doing that, as I would assume the entire string would be inserted as a whole, but it appears to be the case as |
@hmhealey @srkgupta Well, it seems like my fix might not have done anything, as I can't get it to read properly with JAWS anymore. NVDA seems to read JAWS refuses to read |
@asaadmahmood Do you recall adding any |
@devinbinnie Don't think so. |
Okay after further investigation I've identified this issue as an issue between JAWS and Firefox. See the JIRA ticket for more information. We can still merge this as a fix for the Direct Messages modal reading individual pieces of the names, as the reading still works with Firefox using NVDA. |
@amyblais can this go into v5.16? I think it should as we should be supporting NVDA as much as possible. |
Sounds good, |
…tiselect option change (#3679)
…tiselect option change (mattermost#3679)
…tiselect option change (mattermost#3679)
Summary
Firefox was not correctly reading the
aria-live
region of themultiselect
component, instead it was reading bits and pieces as the text field was updated. This PR adds thearia-atomic
label, which ensures the entire option is read correctly.NOTE: Microsoft Edge continues to have issues with JAWS and NVDA. See: FreedomScientific/standards-support#266
Hopefully this will be fixed soon.
Tested on Firefox 69.0 and JAWS 2019.1907.42
Ticket Link
https://mattermost.atlassian.net/browse/MM-18385