Skip to content

Selection not being shown in active line #19

@pblop

Description

@pblop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions