Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/dataDisplay/Tooltip/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,24 @@ export const Basic = (): React.ReactElement => {

export const CustomColor = (): React.ReactElement => {
return (
<Tooltip title="Some text" backgroundColor="rinkeby" arrow>
<Tooltip
title="Some text"
backgroundColor="rinkeby"
textColor="white"
arrow>
<span>hover me</span>
</Tooltip>
);
};

export const CustomColorAndArrow = (): React.ReactElement => {
return (
<Tooltip title="Some text" backgroundColor="primary" placement="left" arrow>
<Tooltip
title="Some text"
backgroundColor="primary"
placement="left"
textColor="white"
arrow>
<span>hover me</span>
</Tooltip>
);
Expand Down
2 changes: 1 addition & 1 deletion src/dataDisplay/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getBorderBySize = (size: ThemeTooltipSize): string => {
case 'lg':
return 'none';
default:
return `1px solid ${theme.colors.separator}`;
return `1px solid ${theme.colors.icon}`;
}
};

Expand Down