diff --git a/webview-ui/src/components/ui/combobox.tsx b/webview-ui/src/components/ui/combobox.tsx index 24b2f7be1f..566fb08cbb 100644 --- a/webview-ui/src/components/ui/combobox.tsx +++ b/webview-ui/src/components/ui/combobox.tsx @@ -6,9 +6,10 @@ import { cva } from "class-variance-authority" import { Check, ChevronsUpDown, Loader, X } from "lucide-react" import { cn } from "@/lib/utils" + import * as ComboboxPrimitive from "@/components/ui/combobox-primitive" import { badgeVariants } from "@/components/ui/badge" -// import * as ComboboxPrimitive from "@/registry/default/ui/combobox-primitive" + import { InputBase, InputBaseAdornmentButton, @@ -159,7 +160,7 @@ const ComboboxSeparator = React.forwardRef< ComboboxSeparator.displayName = "ComboboxSeparator" export const comboboxItemStyle = cva( - "relative flex w-full cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-vscode-dropdown-foreground data-[disabled=true]:opacity-50", + "relative flex w-full cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-vscode-list-activeSelectionBackground data-[selected=true]:text-vscode-dropdown-foreground data-[disabled=true]:opacity-50", ) export const ComboboxItem = React.forwardRef< diff --git a/webview-ui/src/components/ui/command.tsx b/webview-ui/src/components/ui/command.tsx index 99e987599c..02a8203207 100644 --- a/webview-ui/src/components/ui/command.tsx +++ b/webview-ui/src/components/ui/command.tsx @@ -108,7 +108,7 @@ const CommandItem = React.forwardRef< svg]:size-4 [&>svg]:shrink-0 active:opacity-90", + "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-vscode-list-activeSelectionBackground focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 active:opacity-90", inset && "pl-8", className, )} @@ -96,7 +96,7 @@ const DropdownMenuCheckboxItem = React.forwardRef< diff --git a/webview-ui/src/components/ui/select.tsx b/webview-ui/src/components/ui/select.tsx index ba54de83c8..d2c3bcb686 100644 --- a/webview-ui/src/components/ui/select.tsx +++ b/webview-ui/src/components/ui/select.tsx @@ -22,7 +22,7 @@ function SelectTrigger({ className, children, ...props }: React.ComponentProps @@ -83,7 +83,7 @@ function SelectItem({ className, children, ...props }: React.ComponentProps diff --git a/webview-ui/src/index.css b/webview-ui/src/index.css index 2144557a98..cebc4240f8 100644 --- a/webview-ui/src/index.css +++ b/webview-ui/src/index.css @@ -96,6 +96,7 @@ --color-vscode-list-hoverForeground: var(--vscode-list-hoverForeground); --color-vscode-list-hoverBackground: var(--vscode-list-hoverBackground); --color-vscode-list-focusBackground: var(--vscode-list-focusBackground); + --color-vscode-list-activeSelectionBackground: var(--vscode-list-activeSelectionBackground); --color-vscode-toolbar-hoverBackground: var(--vscode-toolbar-hoverBackground);