Skip to content

Commit 75a126f

Browse files
committed
Use hardcoded HSL values for tooltip colors
CSS variables (var(--color-*)) weren't being applied for some reason. Switched to direct HSL values to ensure tooltips have visible styling: - backgroundColor: hsl(0 0% 18%) - dark gray - color: hsl(0 0% 83%) - light gray text - borderColor: hsl(240 2% 25%) - subtle border - Arrow fill: hsl(0 0% 18%) - matches background This ensures tooltips are always visible and properly styled.
1 parent b5daf5f commit 75a126f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/ui/tooltip.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const TooltipContent = React.forwardRef<
2121
className
2222
)}
2323
style={{
24-
backgroundColor: "var(--color-popover)",
25-
color: "var(--color-popover-foreground)",
26-
borderColor: "var(--color-border)",
24+
backgroundColor: "hsl(0 0% 18%)",
25+
color: "hsl(0 0% 83%)",
26+
borderColor: "hsl(240 2% 25%)",
2727
...style,
2828
}}
2929
{...props}
3030
>
3131
{props.children}
32-
<TooltipPrimitive.Arrow className="drop-shadow-sm" style={{ fill: "var(--color-popover)" }} />
32+
<TooltipPrimitive.Arrow className="drop-shadow-sm" style={{ fill: "hsl(0 0% 18%)" }} />
3333
</TooltipPrimitive.Content>
3434
));
3535
TooltipContent.displayName = TooltipPrimitive.Content.displayName;

0 commit comments

Comments
 (0)