Skip to content

Commit 2773d39

Browse files
committed
fix: dropdown hover color fix for white themes
1 parent e1836f8 commit 2773d39

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

webview-ui/src/components/chat/ContextMenu.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,12 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
187187
display: "flex",
188188
alignItems: "center",
189189
justifyContent: "space-between",
190-
backgroundColor:
191-
index === selectedIndex && isOptionSelectable(option)
192-
? "var(--vscode-list-activeSelectionBackground)"
193-
: "",
190+
...(index === selectedIndex && isOptionSelectable(option)
191+
? {
192+
backgroundColor: "var(--vscode-list-activeSelectionBackground)",
193+
color: "var(--vscode-list-activeSelectionForeground)",
194+
}
195+
: {}),
194196
}}
195197
onMouseEnter={() => isOptionSelectable(option) && setSelectedIndex(index)}>
196198
<div

0 commit comments

Comments
 (0)