We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1836f8 commit 2773d39Copy full SHA for 2773d39
webview-ui/src/components/chat/ContextMenu.tsx
@@ -187,10 +187,12 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
187
display: "flex",
188
alignItems: "center",
189
justifyContent: "space-between",
190
- backgroundColor:
191
- index === selectedIndex && isOptionSelectable(option)
192
- ? "var(--vscode-list-activeSelectionBackground)"
193
- : "",
+ ...(index === selectedIndex && isOptionSelectable(option)
+ ? {
+ backgroundColor: "var(--vscode-list-activeSelectionBackground)",
+ color: "var(--vscode-list-activeSelectionForeground)",
194
+ }
195
+ : {}),
196
}}
197
onMouseEnter={() => isOptionSelectable(option) && setSelectedIndex(index)}>
198
<div
0 commit comments