Skip to content

Conversation

@mrleemurray
Copy link
Contributor

@mrleemurray mrleemurray commented Dec 16, 2025

Introduce a new border color for preformatted text segments (i.e. code elements) and apply it across various components to enhance visibility in high contrast themes. Adjustments made to ensure consistent styling and improved accessibility.

Addresses: #204405

Copilot AI review requested due to automatic review settings December 16, 2025 11:16
@mrleemurray mrleemurray self-assigned this Dec 16, 2025
@mrleemurray mrleemurray added this to the December / January 2026 milestone Dec 16, 2025
@vs-code-engineering
Copy link

vs-code-engineering bot commented Dec 16, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@rzhao271

Matched files:

  • src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css

@alexr00

Matched files:

  • src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts

@joaomoreno

Matched files:

  • src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new theme color textPreformat.border to enhance the visibility of inline code elements (preformatted text) in high contrast themes. The border is applied consistently across various UI components including chat interfaces, settings editor, release notes, notebook chat, webviews, and walkthrough pages.

Key Changes:

  • Adds new textPreformat.border color definition with high contrast theme support
  • Applies the border styling consistently across 7 CSS/HTML files
  • Updates color values for existing preformat colors in high contrast modes

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vs/platform/theme/common/colors/baseColors.ts Defines new textPreformat.border color and updates high contrast color values for preformat text
build/lib/stylelint/vscode-known-variables.json Registers the new CSS variable for stylelint validation
src/vs/workbench/contrib/chat/browser/media/chat.css Adds border to inline code elements in chat interface
src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatThinkingContent.css Adds border to code elements in chat thinking/reasoning display
src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css Adds border to code elements in notebook chat interface
src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css Adds border to code elements in settings descriptions
src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts Adds border to code elements and removes obsolete padding properties (with syntax error)
src/vs/workbench/contrib/webview/browser/pre/index.html Adds border to code elements in webview content
src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css Adds border to code elements in walkthrough pages

aiday-mar
aiday-mar previously approved these changes Dec 16, 2025
@bpasero
Copy link
Member

bpasero commented Dec 16, 2025

@mrleemurray red CI

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
aiday-mar
aiday-mar previously approved these changes Dec 16, 2025
@mrleemurray
Copy link
Contributor Author

@bpasero they are timing out during Notebook API tests, Would adding a CSS property cause that?

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

Successfully merging this pull request may close these issues.

4 participants