Skip to content

Matched bracket outline sometimes hides the caret #1027

@ethanPlumbly

Description

@ethanPlumbly

Describe the issue

The outline of a matching bracket highlight in the one-dark theme sometimes covers the caret making it no longer visible.

https://github.com/codemirror/theme-one-dark/blob/main/src/one-dark.ts#L76

Have had to make a theme extension that overwrites the outline to 0px to effectively remove it so the caret can always be seen.

This is also slightly effected by zooming in and out of the page so some zoom levels have the caret visible in a certain position, some do not.

Caret is to the right of the left bracket (and not blinking) but not visible:
image

After creating an extension that removes the highlight outline:
image

Browser and platform

Chromium

Reproduction link

No response

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