Skip to content

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

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

Open
ThenTech opened this issue Jan 17, 2025 · 0 comments

Comments

@ThenTech
Copy link

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

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

No branches or pull requests

1 participant