Skip to content

Commit

Permalink
Increasing contrast of the tooltip in dark mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjones committed Nov 15, 2023
1 parent 38d243e commit 3293ddc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/Tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { TooltipProps } from "@radix-ui/react-tooltip";
import { Tooltip } from "./Tooltip";
import { Text } from "..";

interface Props extends TooltipProps {
showArrow?: boolean;
Expand All @@ -16,7 +17,10 @@ const TooltipExample = ({ showArrow, side, ...props }: Props) => {
}}
>
<Tooltip {...props}>
<Tooltip.Trigger>Tooltip Trigger(Hover)</Tooltip.Trigger>
<Tooltip.Trigger>
<Text>Tooltip Trigger(Hover)</Text>
</Tooltip.Trigger>

<Tooltip.Content
showArrow={showArrow}
side={side}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/variables.dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@
"tooltip": {
"color": {
"background": {
"default": "lch(100 0 0 / 0.15)"
"default": "lch(16.1 0 0 / 0.9)"
},
"label": {
"default": "#ffffff"
Expand Down

1 comment on commit 3293ddc

@vercel
Copy link

@vercel vercel bot commented on 3293ddc Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui.vercel.app
click-ui-git-main-clickhouse.vercel.app
click-ui-clickhouse.vercel.app

Please sign in to comment.