Skip to content

Refactor CSS to use --vscode-shadow-lg#320071

Merged
mrleemurray merged 1 commit into
mainfrom
mrleemurray/aesthetic-amber-ferret
Jun 5, 2026
Merged

Refactor CSS to use --vscode-shadow-lg#320071
mrleemurray merged 1 commit into
mainfrom
mrleemurray/aesthetic-amber-ferret

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

@mrleemurray mrleemurray commented Jun 5, 2026

This pull request updates the way shadows are applied to several UI widgets by standardizing on the --vscode-shadow-lg variable and removing the now-unused --vscode-shadow-hover variable. This change ensures a more consistent visual appearance across the editor and simplifies the shadow variable set.

Theme and variable cleanup:

  • Removed the --vscode-shadow-hover CSS variable from the global style definitions in style.css and from the list of known variables in vscode-known-variables.json. [1] [2]

UI consistency improvements:

  • Updated the box-shadow property in multiple widget styles (hover.css, peekViewWidget.css, renameWidget.css, and hover.css in the platform directory) to use --vscode-shadow-lg instead of the removed --vscode-shadow-hover variable. This change affects the hover widget, peek view widget, and rename widget, ensuring they all use the same shadow style. [1] [2] [3] [4]

…n multiple CSS files

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings June 5, 2026 10:23
@mrleemurray mrleemurray enabled auto-merge (squash) June 5, 2026 10:23
@mrleemurray mrleemurray self-assigned this Jun 5, 2026
Copy link
Copy Markdown
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 standardizes shadow styling across several VS Code hover/peek/rename UI widgets by consolidating on the existing --vscode-shadow-lg CSS variable and removing the unused --vscode-shadow-hover variable from global definitions and stylelint’s known-variable allowlist.

Changes:

  • Removed --vscode-shadow-hover from the global workbench CSS variable set.
  • Updated widget CSS (hover, peekView, rename) to use --vscode-shadow-lg for box-shadow.
  • Removed --vscode-shadow-hover from build/lib/stylelint/vscode-known-variables.json to keep lint configuration in sync.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vs/workbench/browser/media/style.css Removes the --vscode-shadow-hover CSS variable definition from the global workbench variable set.
src/vs/platform/hover/browser/hover.css Updates workbench hover widget shadow to use --vscode-shadow-lg.
src/vs/editor/contrib/rename/browser/renameWidget.css Updates rename widget shadow to use --vscode-shadow-lg.
src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css Updates peek view widget shadow to use --vscode-shadow-lg.
src/vs/editor/contrib/hover/browser/hover.css Updates editor hover shadow to use --vscode-shadow-lg.
build/lib/stylelint/vscode-known-variables.json Removes --vscode-shadow-hover from the stylelint known-variables list to match the variable removal.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Screenshot Changes

Base: 248c024a Current: b9ca3444

Changed (6)

editor/inlineCompletions/other/HintsToolbar/Dark
Before After
before after
editor/inlineCompletions/other/HintsToolbar/Light
Before After
before after
editor/inlineCompletions/other/HintsToolbarHovered/Dark
Before After
before after
editor/inlineCompletions/other/HintsToolbarHovered/Light
Before After
before after
peekReference/PeekReferences/Dark
Before After
before after
peekReference/PeekReferences/Light
Before After
before after

@mrleemurray mrleemurray merged commit 21783d3 into main Jun 5, 2026
26 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/aesthetic-amber-ferret branch June 5, 2026 10:51
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 5, 2026
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.

3 participants