fix: use proper alternating colors in KeyboardShortcuts.tsx

Signed-off-by: Fred Bricon <fbricon@gmail.com>
This commit is contained in:
Fred Bricon 2025-05-13 16:43:03 +02:00
parent 5b0ecb26ac
commit f1bfcec825
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@ interface KeyboardShortcutProps {
function KeyboardShortcut(props: KeyboardShortcutProps) {
return (
<div
className={`flex flex-col items-start p-2 py-2 sm:flex-row sm:items-center ${props.isEven ? "bg-list-active" : ""}`}
className={`flex flex-col items-start p-2 py-2 sm:flex-row sm:items-center ${props.isEven ? "" : "bg-table-odd-rows"}`}
>
<div className="w-full flex-grow pb-1 pr-4 sm:w-auto sm:pb-0">
<span className="block break-words text-xs">{props.description}:</span>

View file

@ -43,6 +43,7 @@ module.exports = {
// TODO make it all non-IDE-specific naming
"find-match-selected":
"var(--vscode-editor-findMatchHighlightBackground, rgba(255, 223, 0))",
"table-odd-rows":"var(--vscode-tree-tableOddRowsBackground, #1bbe84)",
"list-active": "var(--vscode-list-activeSelectionBackground, #1bbe84)",
"list-active-foreground":
"var(--vscode-quickInputList-focusForeground, var(--vscode-editor-foreground))",