Skip to content

Commit 33a8573

Browse files
roomote[bot]roomotecte
authored
feat: update tooltip component to match native VSCode tooltip shadow styling (#7457)
Co-authored-by: Roo Code <[email protected]> Co-authored-by: cte <[email protected]>
1 parent faf5734 commit 33a8573

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function TooltipContent({
3131
className={cn(
3232
"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",
34+
"shadow-[0_2px_8px_var(--color-vscode-widget-shadow)]",
3435
className,
3536
)}
3637
{...props}>

webview-ui/src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
--color-vscode-inputValidation-infoBorder: var(--vscode-inputValidation-infoBorder);
132132

133133
--color-vscode-widget-border: var(--vscode-widget-border);
134+
--color-vscode-widget-shadow: var(--vscode-widget-shadow);
134135

135136
--color-vscode-textLink-foreground: var(--vscode-textLink-foreground);
136137

0 commit comments

Comments
 (0)