Skip to content

[IntelliCode API Usage Examples] CSS background bug in code snippet previews #588

Open
@ThenTech

Description

Due to microsoft/vscode#197124 introducing a new CSS variable --vscode-textPreformat-background, all code blocks rendered in Markdown context have a background color set. But the way the IntelliCode API Usage Examples extension renders its snippets, this background color is also applied to all the text in the snippet, visually looking like the entire snippet is always selected:

Image

As a solution, the gaia-results.css could override the background-color property to transparent in the pre code style:

pre code {
    color: var(--vscode-editor-foreground);
    tab-size: 4;
    background-color: transparent; /* Changed */
}

Which will then look like below, which is the expected behaviour I assume.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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