Fix: Context mentions menu is not legible with light+ theme (#745) (#942)

This commit is contained in:
XcantloadX
2024-12-21 19:23:08 -08:00
committed by GitHub
parent 75e3b9116d
commit 031da29a57
@@ -129,14 +129,17 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
style={{
padding: "8px 12px",
cursor: isOptionSelectable(option) ? "pointer" : "default",
color: "var(--vscode-dropdown-foreground)",
color:
index === selectedIndex && isOptionSelectable(option)
? "var(--vscode-quickInputList-focusForeground)"
: "",
borderBottom: "1px solid var(--vscode-editorGroup-border)",
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor:
index === selectedIndex && isOptionSelectable(option)
? "var(--vscode-list-activeSelectionBackground)"
? "var(--vscode-quickInputList-focusBackground)"
: "",
}}
onMouseEnter={() => isOptionSelectable(option) && setSelectedIndex(index)}>