From 0734808774e1dbf8ab7abb7241cb331bfbdea637 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Fri, 12 Jan 2024 13:32:35 +0100 Subject: [PATCH] Fix invalid colors for collection tree in dialogs --- scss/components/_collection-tree.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scss/components/_collection-tree.scss b/scss/components/_collection-tree.scss index d697ecb471..23feed0875 100644 --- a/scss/components/_collection-tree.scss +++ b/scss/components/_collection-tree.scss @@ -17,7 +17,14 @@ $icons: ( #zotero-collections-tree { width: 100%; - background: transparent; + + #main-window & { + // virtualized-table has a default background (--material-background) + // which is what we want in most places, including dialogs that include + // #zotero-collections-tree, however main window collection tree is an + // exception + background: transparent; + } .virtualized-table { overflow-y: auto;