doomemacs / doomemacs/core

Cannot read css color when under cursor

Open
#7,217 3 comments 1 reaction 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### I confirm that...

- [x] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [X] The issue can be reproduced on the **latest** available commit of Doom.

- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*

### Expected behavior

Being able to see colored text and read the text on CSS colors independently of the cursor position.

### Current behavior

The colored background of the css disappears when the cursor is on the line.

But the text does not change color. That make it unreadable when using light colors with dark themes.

![Screenshot_20230503_115506](https://user-images.githubusercontent.com/64377698/235912522-53fe67d3-f89b-4ee1-99cc-10053ead19d7.png)

![image](https://user-images.githubusercontent.com/64377698/235912549-19640be1-6695-4151-b5e7-2a7599d9c14b.png)

### Steps to reproduce

1. Open Emacs
2. Open a css file.
3. Write a css class with some color property (be it `#`, or `rgb()`, etc.)
4. Put the cursor on the line where the color is.
5. See that the background of the color disappeared, but the text did not change color.

### System Information

https://pastebin.com/L0Fvnvkt

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.