Skip to content

Add depth shadows for panels in the editor#297717

Merged
mrleemurray merged 2 commits intomainfrom
mrleemurray/psychiatric-apricot-ox
Feb 25, 2026
Merged

Add depth shadows for panels in the editor#297717
mrleemurray merged 2 commits intomainfrom
mrleemurray/psychiatric-apricot-ox

Conversation

@mrleemurray
Copy link
Contributor

@mrleemurray mrleemurray commented Feb 25, 2026

Enhance UI layering by adding depth shadows for panels in the editor. This change improves the visual hierarchy and makes panels appear to float above the editor surface, whilst removing the z-index manipulation that was causing unintended issues.

Addresses: #297640

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings February 25, 2026 16:09
@mrleemurray mrleemurray self-assigned this Feb 25, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 25, 2026
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 improves the visual hierarchy in the VS Code editor by replacing problematic z-index stacking with a shadow-based depth system. The change addresses issues where z-index manipulation on panels was breaking webviews, iframes, and sashes. Instead, the editor now draws "received shadows" via a ::after pseudo-element to create the illusion that surrounding panels (sidebar, panel, auxiliarybar) float above it.

Changes:

  • Added CSS variables for panel depth shadows with separate values for light and dark themes
  • Removed all z-index rules from panels, sidebars, sashes, webviews, and notebooks that were causing stacking issues
  • Implemented inset shadows on the editor's ::after pseudo-element that adapt based on panel position and sidebar location

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mrleemurray mrleemurray merged commit 10aa748 into main Feb 25, 2026
20 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/psychiatric-apricot-ox branch February 25, 2026 17:27
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