Skip to content

fix(feedback): hide side panel drop shadow when panel is closed#122

Merged
peter-adam-dy merged 1 commit into
mainfrom
hide-sidepanel-shadow
Jun 2, 2026
Merged

fix(feedback): hide side panel drop shadow when panel is closed#122
peter-adam-dy merged 1 commit into
mainfrom
hide-sidepanel-shadow

Conversation

@peter-adam-dy

Copy link
Copy Markdown
Collaborator

Problem

The injected feedback side panel is hidden by translating it offscreen (transform: translateX(±100%)), but its box-shadow bled back into the viewport — leaving a persistent shadow edge along the screen border even when the panel was closed.

Fix

  • Move the box-shadow onto the .veld-feedback-panel-open state only (both right and left variants), so it appears solely when the panel is visible.
  • Add box-shadow to the panel's transition so it fades in/out together with the slide.
  • Keep a transparent zero-spread box-shadow: 0 0 0 rgba(0,0,0,0) as the base state — required as an animatable baseline (none cannot transition to a shadow value).

Scope

Internal CSS-only bugfix to the feedback overlay. No new config fields, CLI flags, or user-visible surface area — documentation checklist does not apply.

Test

  • npm run build in crates/veld-daemon/frontend succeeds (CSS bundles into the overlay JS via esbuild, embedded at cargo build).
  • Sub-agent review of the diff: cascade/specificity, directional shadows (left/right), and transition baseline all verified correct.

The injected feedback side panel is hidden by translating it offscreen
(translateX(±100%)), but its box-shadow bled back into the viewport,
leaving a persistent shadow edge even when the panel was closed.

Move the box-shadow onto the .veld-feedback-panel-open state only and
add box-shadow to the transition so it fades in/out with the panel.
The base state keeps a transparent zero-spread shadow as an animatable
baseline.
@peter-adam-dy peter-adam-dy merged commit c145ad1 into main Jun 2, 2026
16 checks passed
@peter-adam-dy peter-adam-dy deleted the hide-sidepanel-shadow branch June 2, 2026 09:08
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.

1 participant