Skip to content

Commit

Permalink
Prevent to apply unexpected white background in the content area with…
Browse files Browse the repository at this point in the history
… Dark theme
  • Loading branch information
piroor committed Jan 14, 2025
1 parent 4dea9ce commit 7021e06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webextensions/sidebar/tab-preview-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const TAB_PREVIEW_FRAME_STYLE = `
background: transparent;
border: 0 none;
bottom: 0;
color-scheme: light; /* "color-scheme:dark" (which can be applied by Firefox itself or the webpage) makes the background color of this element white and intransparent unexpectedly when the "Dark" theme is chosen on Firefox. We cannot override the white background color with the "background" declaration above, so we now override "color-scheme" instead. (Dark color scheme is injected by the caller, so we don't need to set "color-scheme:dark" here.) */
height: 100%;
left: 0;
overflow: hidden;
Expand Down

0 comments on commit 7021e06

Please sign in to comment.