Skip to content

Commit

Permalink
fix: circular dep
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Mar 28, 2024
1 parent c33ab27 commit 972ada5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/components/Tooltip/Tooltip.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ $tooltip-z-index: 9999999999999999;
z-index: 1;
}

.title {
@include vibe-text(text2, bold);
}

.content {
display: inline-block;
padding: var(--tooltip-padding, #{var(--spacing-small) var(--spacing-medium)});
Expand Down
5 changes: 1 addition & 4 deletions packages/core/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { getStyle } from "../../helpers/typesciptCssModulesHelper";
import styles from "./Tooltip.module.scss";
import { ComponentDefaultTestId, getTestId } from "../../tests/test-ids-utils";
import { SubIcon } from "../../types";
import Text from "../Text/Text";
import Icon from "../Icon/Icon";
import Flex from "../Flex/Flex";

Expand Down Expand Up @@ -223,9 +222,7 @@ export default class Tooltip extends PureComponent<TooltipProps> {
{title && (
<Flex gap={Flex.gaps.XS}>
{icon && <Icon iconSize="20" icon={icon} clickable={false} />}
<Text color={Text.colors.INHERIT} weight={Text.weights.BOLD}>
{title}
</Text>
<div className={styles.title}>{title}</div>
</Flex>
)}
{contentValue}
Expand Down

0 comments on commit 972ada5

Please sign in to comment.