catppuccin / catppuccin/codemirror

Selection not being shown in active line

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
29
Forks
9
PR merge metrics
No merged PRs in 30d

Description

The Codemirror editor doesn't show highlighted text if it's on the active line.

For example, see the image below. I've selected `String` inside the active line (`static validatedValue...`), but the selection is not shown. It's hidden behind the active line background.

Image

Codemirror, by default, with no themes, uses a transparent colour for the active line background. This allows the colour from the selection to pass through.

This also works inside the catppuccin theme, following the example above, where the active line colour is `#313244`, if it's set to any transparent value (I've used `#31324490`), the selection is able to shine through, and the issue solved (see image below).

Image

I'd send a PR, but I'm not sure about which transparency values would be appropriate for catppuccin.

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.