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

Cursor not visible with dark background #1496

Open
Erim32 opened this issue Oct 9, 2023 · 2 comments
Open

Cursor not visible with dark background #1496

Erim32 opened this issue Oct 9, 2023 · 2 comments
Labels

Comments

@Erim32
Copy link

Erim32 commented Oct 9, 2023

Describe the bug
Code editor cursor is not visible when user use a dark background, current version keep black color.

To Reproduce

  • Create a custop theme with black background
  • click on code block
  • you should not be able to see text cursor position

Expected behavior

  • Be able to see text cursor in different cases, I suggest :
    option 1 : add custom theme color for cursor, using -> my favorite
    option 2 : dynamic ajust text cursor color according background color ( if background is dark, cursor is light and reverse ).

How to fix that :
Use caret-color css propertie ;
https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color

More details :
After deep investigation if you create a theme with a white text cursor, after save your new theme, text cursor will became dark.

@Erim32 Erim32 added the bug label Oct 9, 2023
@trana5197
Copy link

Hi @Erim32, can you please put images because I am able to see the cursor with the black background. Thank you

@matheusjardimb
Copy link

@trana5197, the cursor doesn't appear on print screens. It is actually there but barely visible (the cursor is black on top of the darker background)

image

The same doesn't happen when selecting a portion of the text:

image

I guess something like this could be the solution: https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color

BTW, I'm using Chrome v123.0.6312.105 on an Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants