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
I was tabbing through my site checking which elements received focus and I was surprised to find that MathJax equations are focusable. Once focused, clicking the spacebar brings up a MathJax context menu. Is there a way to disable this behavior? I was able to remove the outline with css but the element is still focusable which isn't ideal.
The text was updated successfully, but these errors were encountered:
This question is actually a MathJax question but I'll answer it anyways :)
You can disable the menu by the following configuration options in versions 2 and 3:
// version 2constmj2config={showMathMenu: false};// version 3constmj3config={options: {enableMenu: false}};
To remove the math from tabbing, use the following configurations (which may of course be combined with the above):
// version 2constmj2config={menuSettings: {inTabOrder: false},};// version 3constmj3config={options: {menuOptions: {settings: {inTabOrder: false}}}};
NOTE however, that in MathJax 2 this works flawlessly and you can have an enabled menu and remove all math from tabbing and vice versa. In MathJax 3, the menuOptions seems to be entirely ignored (which I have filed a report about here: mathjax/MathJax#2855), but if you disable the menu, the math is ALSO removed from tabbing so in your case, I don't think it matters since you don't seem to be interested in the menu.
Apparently there was a bug in MathJax 3.2.0 that causes this but it will be fixed in 3.2.1. Nonetheless, deactivating tabbing but keeping the menu will not be allowed so probably it will just be better documented but not possible. In the MathJax community, a lot of people see it as poor design to turn off these assistive technologies... I've done it myself a few times but they have put a lot of effort into making the page accessible to users who need assistance so ... yeah, just something worth to think about :)
I was tabbing through my site checking which elements received focus and I was surprised to find that MathJax equations are focusable. Once focused, clicking the spacebar brings up a MathJax context menu. Is there a way to disable this behavior? I was able to remove the outline with css but the element is still focusable which isn't ideal.
The text was updated successfully, but these errors were encountered: