Skip to content

Commit

Permalink
ADCIO-4384) fix: fix tooltip style issue (#96)
Browse files Browse the repository at this point in the history
* fix: fix tooltip style issue

* release: release v0.0.29

---------

Co-authored-by: dev-redo <[email protected]>
  • Loading branch information
dev-redo and dev-redo committed Jul 5, 2024
1 parent 12b8818 commit 886277c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Corca <[email protected]>",
"description": "Design System for Corca, Inc.",
"private": false,
"version": "0.0.28",
"version": "0.0.29",
"type": "module",
"packageManager": "[email protected]",
"main": "dist/index.js",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PropsWithChildren, ReactElement } from 'react';
import styled from '@emotion/styled';

import { color, typography } from '../styles';
import { B5 } from '../Text';

export type Placement = 'top' | 'bottom' | 'left' | 'right';
export type Position = 'start' | 'end' | 'center';
Expand Down Expand Up @@ -32,7 +33,7 @@ export function Tooltip({
<TooltipWrapper className="tooltip-box">
{withArrow && <TooltipArrow placement={placement} />}
<TooltipBubble withArrow={withArrow} placement={placement} position={position}>
{content}
<B5 c="white">{content}</B5>
</TooltipBubble>
</TooltipWrapper>
</TooltipContainer>
Expand Down Expand Up @@ -218,13 +219,13 @@ const TooltipBubble = styled.div<BubbleProps>`
max-width: 300px;
cursor: help;
background: ${color['main-black']};
color: ${color.white};
font-size: ${typography.size.xxs}px;
font-weight: ${typography.weight.regular};
padding: 7px 10px;
border-radius: 8px;
white-space: pre-wrap;
word-break: break-all;
line-height: normal;
${props => getBubbleMixin(props)}
`;

0 comments on commit 886277c

Please sign in to comment.