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

Colored Text Turns Black After Leaving MathField #2479

Open
andrew-murdza opened this issue Aug 6, 2024 · 0 comments
Open

Colored Text Turns Black After Leaving MathField #2479

andrew-murdza opened this issue Aug 6, 2024 · 0 comments

Comments

@andrew-murdza
Copy link

andrew-murdza commented Aug 6, 2024

Steps to Reproduce

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Change FontShape of MathField</title>
  <script defer src="https://unpkg.com/mathlive"></script>
</head>
<body>
<math-field>x+1</math-field>
</body>
</html>
  1. Run the above code
  2. Change the color of $x$ using the menu
  3. Click away from the MathField (but keep the x selected)

Actual Behavior

  1. After leaving the MathField, the text becomes black. This doesn't happen if you unhighlight $x$ before leaving the MathField

Expected Behavior

After leaving the MathField, the text doesn't change back to black

Environment

0.101.0 Chrome Windows

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

No branches or pull requests

1 participant