Skip to content

Commit 4d1e651

Browse files
committed
fix(ds): Set default Tooltip cursor to default (not help)
1 parent 1e49357 commit 4d1e651

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/components/src/components/Tooltip/Tooltip.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ describe('Tooltip', () => {
9696
expect(screen.getByText('Hover me').parentElement).toHaveStyle({ cursor: 'pointer' });
9797
});
9898

99-
it('should should apply the default=help cursor when the passed cursor is undefined', () => {
99+
it('should should apply the default=inherit cursor when the passed cursor is undefined', () => {
100100
const tooltipContent = 'Tooltip Content';
101101
render(
102102
<Tooltip content={tooltipContent} cursor={undefined}>
103103
<button>Hover me</button>
104104
</Tooltip>,
105105
);
106106

107-
expect(screen.getByText('Hover me').parentElement).toHaveStyle({ cursor: 'help' });
107+
expect(screen.getByText('Hover me').parentElement).toHaveStyle({ cursor: 'inherit' });
108108
});
109109
});

packages/components/src/components/Tooltip/Tooltip.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const Tooltip = ({
131131
$isInline={isInline}
132132
as={elType}
133133
{...frameProps}
134-
$cursor={frameProps.$cursor ?? 'help'}
134+
$cursor={frameProps.$cursor ?? 'inherit'}
135135
>
136136
{children}
137137
{hasIcon && <Icon name="question" size="medium" />}

0 commit comments

Comments
 (0)