apluslms / a-plus-rst-tools

Tools to publish RST course content for mooc-grader and a-plus. Should be cloned as a course submodule.
MIT License
6 stars 24 forks source link

If we use the Tab key to navigate through the questionnaires that have some `math` role, the mathematical expresions will be highlighted #108

Open jaguarfi opened 3 years ago

jaguarfi commented 3 years ago

If we use the keyboard to navigate through the questionnaires that have some math role, all the math expressions will be recognized as interactive elements. This should not happen because the mathematical expressions are just part of the text. Or maybe we want to keep them interactive. I don't know 🤔 Any case, if we want to keep them in interactive, we should use some type of aria-label to describe the element.

keyboard_navigation_math_inside_questionnaires

jaguarfi commented 3 years ago

Moreover, in this particular case, when we use a screen reader, the screen reader do not read out the answers. It only says "checkbox, no checked"

markkuriekkinen commented 3 years ago

The MathJax.js library has already been developed with accessibility in mind. It is intentional that tab navigation finds the formulas. I don't know about screen readers, though I thought that MathJax.js should have good support for screen readers. It may depend on the screen reader software and configurations too. Nevertheless, we don't develop MathJax, but A+ could ensure that MathJax uses accessible default configurations. Courses might change the MathJax configurations, but the platform should define accessible defaults.

The MathJax documentation describes how to define the settings in a script element in the html page (JS object with certain fields etc.).

jaguarfi commented 3 years ago

Check this out https://docs.mathjax.org/en/v2.7-latest/misc/accessibility-features.html#mathjax-accessibility-extensions

markkuriekkinen commented 3 years ago

@jaguarfi Then we want to enable the MathJax accessibility extensions. It looks like they should improve accessibility without any downsides, so let's try it.