Skip to content

Commit 031da29

Browse files
authored
Fix: Context mentions menu is not legible with light+ theme (RooCodeInc#745) (RooCodeInc#942)
1 parent 75e3b91 commit 031da29

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,17 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
129129
style={{
130130
padding: "8px 12px",
131131
cursor: isOptionSelectable(option) ? "pointer" : "default",
132-
color: "var(--vscode-dropdown-foreground)",
132+
color:
133+
index === selectedIndex && isOptionSelectable(option)
134+
? "var(--vscode-quickInputList-focusForeground)"
135+
: "",
133136
borderBottom: "1px solid var(--vscode-editorGroup-border)",
134137
display: "flex",
135138
alignItems: "center",
136139
justifyContent: "space-between",
137140
backgroundColor:
138141
index === selectedIndex && isOptionSelectable(option)
139-
? "var(--vscode-list-activeSelectionBackground)"
142+
? "var(--vscode-quickInputList-focusBackground)"
140143
: "",
141144
}}
142145
onMouseEnter={() => isOptionSelectable(option) && setSelectedIndex(index)}>

0 commit comments

Comments
 (0)