Skip to content

Commit 9712b9d

Browse files
committed
Match VSCode theme
1 parent 7bc96ec commit 9712b9d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

webview-ui/src/components/ui/tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ function TooltipContent({
2929
data-slot="tooltip-content"
3030
sideOffset={sideOffset}
3131
className={cn(
32-
"bg-vscode-focusBorder text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
32+
"bg-vscode-editorHoverWidget-background outline outline-vscode-editorHoverWidget-border text-vscode-editorHoverWidget-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm px-2 py-1 text-xs text-balance",
3333
"max-w-[300px] break-words",
3434
className,
3535
)}
3636
{...props}>
3737
{children}
38-
<TooltipPrimitive.Arrow className="bg-vscode-focusBorder fill-vscode-focusBorder z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
38+
<TooltipPrimitive.Arrow className="bg-vscode-editorHoverWidget-background border-b border-r border-vscode-editorHoverWidget-border fill-vscode-editorHoverWidget-background z-50 size-1.5 translate-y-[calc(-50%_+_1px)] rotate-45" />
3939
</TooltipPrimitive.Content>
4040
</TooltipPrimitive.Portal>
4141
)

webview-ui/src/index.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
--color-vscode-button-background: var(--vscode-button-background);
7777
--color-vscode-button-secondaryForeground: var(--vscode-button-secondaryForeground);
7878
--color-vscode-button-secondaryBackground: var(--vscode-button-secondaryBackground);
79+
--color-vscode-button-hoverBackground: var(--vscode-button-hoverBackground);
7980

8081
--color-vscode-dropdown-foreground: var(--vscode-dropdown-foreground);
8182
--color-vscode-dropdown-background: var(--vscode-dropdown-background);
@@ -130,9 +131,14 @@
130131
--color-vscode-inputValidation-infoBorder: var(--vscode-inputValidation-infoBorder);
131132

132133
--color-vscode-widget-border: var(--vscode-widget-border);
134+
133135
--color-vscode-textLink-foreground: var(--vscode-textLink-foreground);
136+
134137
--color-vscode-textCodeBlock-background: var(--vscode-textCodeBlock-background);
135-
--color-vscode-button-hoverBackground: var(--vscode-button-hoverBackground);
138+
139+
--color-vscode-editorHoverWidget-foreground: var(--vscode-editorHoverWidget-foreground);
140+
--color-vscode-editorHoverWidget-background: var(--vscode-editorHoverWidget-background);
141+
--color-vscode-editorHoverWidget-border: var(--vscode-editorHoverWidget-border);
136142
}
137143

138144
@layer base {

0 commit comments

Comments
 (0)