Skip to content

Help Dialog is not modal #3405

@salbeira

Description

@salbeira

Issue Summary

When opening the help dialog with H or by clicking the ( i ), it is neither focused nor brought in front of the entire document. If anything has manually adjusted z-indices it hovers in front of the dialog. I am unable to click, scroll or interact with it because other absolutely positioned elements stay in front of the dialog, eating events.

Steps to Reproduce:

  1. Open the help dialog in something like a Reveal.js slide container that has a high z-index.
  2. Despair.

Technical details:

  • MathJax Version: 4.0
  • Client OS: Linux
  • Browser: Firefox & Chrome

I am using the following MathJax configuration:

Too much custom adjustments that are probably not relevant to the issue.

Supporting information:

The issue was solvable by inserting this into my CSS:

        mjx-help-background {
            z-index: 128;
        }

Though I suggest to not do that as a solution but to make the help dialog an actual dialog element and bring it front and center with dialog.showModal();

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundReady for Reviewv4

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions