Skip to content

fix: apply color-scheme to match VS Code theme for native scrollbar#9993

Closed
1chooo wants to merge 1 commit into
microsoft:mainfrom
1chooo:fix/scrollbar-color-scheme
Closed

fix: apply color-scheme to match VS Code theme for native scrollbar#9993
1chooo wants to merge 1 commit into
microsoft:mainfrom
1chooo:fix/scrollbar-color-scheme

Conversation

@1chooo

@1chooo 1chooo commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The main scrollbar in release notes webviews was always rendering in light mode, even when VS Code uses a dark or high-contrast theme.
  • Added color-scheme CSS rules keyed to the existing body.vscode-dark, body.vscode-high-contrast, and body.vscode-light class selectors in both release-notes/css/inproduct_releasenotes.css and remote-release-notes/css/inproduct_releasenotes.css.
  • The browser engine reads color-scheme to decide which OS-native scrollbar style to render, so this makes the scrollbar automatically follow the active VS Code theme with no JavaScript required.

Fixes: #9176
Refs: microsoft/vscode#282421

Changes

  • release-notes/css/inproduct_releasenotes.css: add color-scheme rules after the body {} block
  • remote-release-notes/css/inproduct_releasenotes.css: add color-scheme rules after the body {} block

Test plan

  • Open any release notes page in VS Code with a dark theme — scrollbar should appear dark
  • Open any release notes page in VS Code with a light theme — scrollbar should appear light
  • Open any release notes page in VS Code with a high-contrast theme — scrollbar should appear dark/high-contrast

Made with Cursor

The native OS scrollbar rendered in release notes webviews was always
appearing in light mode, even when VS Code is set to a dark theme.

Add color-scheme CSS rules keyed to the existing body.vscode-dark,
body.vscode-high-contrast, and body.vscode-light selectors so the
browser engine picks the correct scrollbar style to match the active
theme. Fixes microsoft/vscode#282421.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ntrogh

ntrogh commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

This issue requires a change in the website infra code.

@ntrogh ntrogh closed this Jun 28, 2026
@1chooo

1chooo commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing is the infra code as internal project? Or where should I create a pr

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.

Website main scrollbar doesn't follow theme

2 participants