MC Feedback is Hidden (accessibility problem)
Submitted by greggy on Fri, 03/26/2021 - 19:50
Forums:
Found a bug in the MC content type. There's an aria-hidden="true" in the DIV that contains the feedback for a multiple choice question, which, though visible to those who can see, hides the feedback from screen readers. Easy fix. Just remove the attribute. There's no effect elsewhere from what I can tell.
Here's the offending line:
We've edited our local version so we're good. Using the Wordpress plugin V1.15.0. Hoping the fix makes it into the next release.
Submitted a pull request with the fix.
https://github.com/h5p/h5p-multi-choice/pull/111
greg
otacke
Fri, 03/26/2021 - 20:15
Permalink
Hi Greggy!I am not on my
Hi Greggy!
I am not on my desktop right now and can't check multiple choice quizzes live, but I assume that the written text was hidden for readspeakers, because it's read immediately whenever addFeedback is called (https://github.com/h5p/h5p-multi-choice/blob/99ef831a691680ac61a447fc273e880aec0d251c/js/multichoice.js#L300 and https://github.com/h5p/h5p-multi-choice/blob/99ef831a691680ac61a447fc273e880aec0d251c/js/multichoice.js#L720). Not sure if some readspeakers read it twice this way.
Best,
Oliver
greggy
Fri, 03/26/2021 - 20:27
Permalink
What about screen readers?
The feedback text is completely innaccessible to screen readers if its hidden with aria-hidden. If it is being read twice, then perhaps the readspeaker output should be removed, so both screen readers and readspeaker get the same content from the feedback area itself. Readspeaker users also have the option to stop reading, if it reads a second time. Screen readers should not be denied access for the convenience of Readspeaker users (no offence to Readspeaker users).
otacke
Fri, 03/26/2021 - 22:55
Permalink
I am absolutely not an expert
I am absolutely not an expert on that topic and I am not arguing for or against either way. I just had a look at the code and observed that there feedback seems to be read and shared that observation.
greggy
Wed, 05/12/2021 - 19:10
Permalink
Bumped up
Just bumping this accessibility issue back into view.