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

Correct line color in high contrast mode on PC #2482

Open
langit opened this issue Aug 8, 2024 · 1 comment
Open

Correct line color in high contrast mode on PC #2482

langit opened this issue Aug 8, 2024 · 1 comment
Labels
bug does not follow template The report does not follow the bug template good first issue An issue that is a good introduction to the code base help wanted

Comments

@langit
Copy link

langit commented Aug 8, 2024

  <math-field read-only style="display:inline-block">
      x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}
  </math-field>

Any latex code with commands that involves lines, such as x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}.

1723089321612

Description

On Windows PC, if you turn on high contrast mode, and open a browser (Edge or Chrome), and visit a page with the classic formula x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}, you will observe that the horizontal lines for the \frac and \sqrt commands become invisible (presumably due to its dark color that disappears into the dark background).

Steps to Reproduce

  1. On a Windows PC, turn on high contrast mode, and use a theme with dark background.
  2. Open a browser (Edge or Chrome, other browsers might also do) and point it to https://cortexjs.io/mathlive/guides/getting-started/
  3. Scroll to the section titled "Try it Out", where a formula is displayed.

Actual Behavior

The horizontal lines for the \frac and \sqrt commands seem missing.

Expected Behavior

The horizontal lines for the \frac and \sqrt commands should show up in the same color as the font.

Environment

The latest (?) MathLive version 0.101.x

Regression: No.

Operating System Windows 11

Browser I have tested with Chrome and Edge: the same problem is observed.

@arnog arnog added the does not follow template The report does not follow the bug template label Aug 8, 2024
@arnog
Copy link
Owner

arnog commented Aug 8, 2024

Cleaned up comment above.

@arnog arnog added bug good first issue An issue that is a good introduction to the code base help wanted labels Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug does not follow template The report does not follow the bug template good first issue An issue that is a good introduction to the code base help wanted
Projects
None yet
Development

No branches or pull requests

2 participants