Skip to content

Commit 1750247

Browse files
authored
Merge pull request RooCodeInc#1271 from SamirSaji/bug/light-mood-dropdown-hover-color-fix
Fix: Resolve issue RooCodeInc#1146 - UI color in 'light' mode causes dark background on dark text (context menu)
2 parents e1836f8 + 2773d39 commit 1750247

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)