MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Not displaying the menu by clicking on the formula

Open saraOrkide opened this issue 1 year ago • 2 comments

Hello, good time How can I disable the click event on the formula? mathjax version: 4.0.0-beta.7 Screenshot from 2024-09-09 16-16-59

saraOrkide avatar Sep 09 '24 13:09 saraOrkide

This is not a menu, it is part of the assistive technology support. Disabling it will make it harder for people with visual disabilities to access your pages. It is easier for sighted users to disable it via the MathJax contextual menu than for visually impaired to enable it if you disable it.

It would be reasonable, however, to disable the display areas (the long bars below the math). To do that, use

MathJax = {
  options: {
    a11y: {
      subtitles: false,
      viewBraille: false
    }
  }
}

as part of your configuration, and add

.MJX_LiveRegion {
  display: none !important;
}
.MJX_LiveRegion_Show {
  display: block !important;
}

to your page's CSS. The CSS won't be necessary after the next release (it is to resolve a bug that will be fixed in the next beta).

dpvc avatar Oct 04 '24 13:10 dpvc

thank you very much Also added this class to css mjx-container[jax="CHTML"] :focus { outline: none!important; background-color: transparent!important; }

saraOrkide avatar Oct 19 '24 05:10 saraOrkide

The CSS that I provided was so that the speech and braille displays (the bars below the math) would be properly hidden when they are disabled by the configuration above. They were not intended to remove the highlighting and background color, which are important, and should be left as is. A focusable item is required to have a visual display when it is focused, and you have removed those. That means people with disabilities who use tabbing to move among the focusable items will not know where they are when a MathJax expression is focused.

It is a mistake to use this CSS, and I would encourage you not to do so.

dpvc avatar Nov 10 '24 15:11 dpvc