question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't change text color when highlighting text

See original GitHub issue

Description

Setting the --on-highlight variable is supposed to set the color of the text when it’s highlighted. Currently this doesn’t work.

Steps to Reproduce

  1. open the basic example
  2. modify the css to set the --on-highlight variable to a color of your choice
  3. run the example and highlight some text in the math-field
  4. the text will stay the color it was and not change color when highlighted

Actual Behavior

Expected Behavior

text color should change on highlight to the set color

[Is this a regression: did it use to work in a previous version?]

Environment

MathLive version I’m on latest at the moment, or commit 9d769e03c59dd98ae07ca72de6f358eb9b31411b

Operating System [macOS, Windows, iOS. Include the version] I am using a Mac, v12.4

Browser [Safari, Chrome, IE, Firefox, etc… Try several browsers and note if there are differences between browsers. Include the version number of the browsers.] This happens in Chrome and Firefox

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arnogcommented, Aug 4, 2022

I’ve checked in a fix to the main branch. Open a new issue if you find some other problems.

0reactions
LinGrincommented, Aug 4, 2022

Should I make a new issue for the above comment?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Word. will Not change colour of the font, or highlight text
3. Open a new document. Type and change the color. If it still does not work, the problem is most likely due to...
Read more >
How to Change the Color of Highlighted and Non-Highlighted ...
Go back to the Colors key, double-click HilightText, and input the default 255 255 255 RGB value. Click OK to save the entered...
Read more >
Can't change colour to highlighted text - 11733327
Some text needs a different colour (links). However the the focus of the text needs a double click to then be able to...
Read more >
Unable to change the colour of text - WordPress.org
For some reason, I am unable to change the colour of the text on my website. ... While some coloured text remains unaffected,...
Read more >
How to change the color and set default color of Text Markup ...
Right click on the highlighted text, select Properties, and pick a color in the Appearance tab. blob.png. To set the new selected color...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found