Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem where some menu settings weren't sticky (mathjax/MathJax#2786) #769

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Feb 2, 2022

This PR adds some initialization to the menu code that makes sure that the initial settings of the menu take effect on a page reload. This was not the case for the in-tab-order, assistive MML, renderer, and scale settings (argh!).

Resolves issue mathjax/MathJax#2786, and similar problems with the other settings.

@zorkow, activating the explorer seems to override the in-tab-order setting. Is that intentional?

@dpvc dpvc requested a review from zorkow February 2, 2022 15:51
@zorkow
Copy link
Member

zorkow commented Feb 22, 2022

@zorkow, activating the explorer seems to override the in-tab-order setting. Is that intentional?

Yes, it is. Once the explorer is on the elements need to be focusable using the tab as they now have aria role application. The in-tab-order only refers to the property of the context menu.
But I note that we set tabIndex=1 in the explorer. That should be 0.

Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc added this to the 3.2.1 milestone Feb 22, 2022
@dpvc dpvc merged commit 0fa9bfc into develop Feb 22, 2022
@dpvc dpvc deleted the issue2786 branch February 22, 2022 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants