Skip to content

Commit

Permalink
docs(tooltip): remove classname for custom story classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Oct 15, 2024
1 parent eb738a7 commit 38e7e92
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/react/src/components/Tooltip/Tooltip.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ export const Default = () => {
'Occasionally, services are updated in a specified time window to ensure no down time for customers.';
return (
<Tooltip align="bottom" label={label}>
<Button className="sb-tooltip-trigger">This button has a tooltip</Button>
<Button>This button has a tooltip</Button>
</Tooltip>
);
};

export const Alignment = () => {
return (
<Tooltip label="Tooltip alignment" align="bottom-left">
<Button className="sb-tooltip-trigger">This button has a tooltip</Button>
<Button>This button has a tooltip</Button>
</Tooltip>
);
};
Expand All @@ -86,9 +86,7 @@ export const ExperimentalAutoAlign = () => {
left: '2500px',
}}>
<Tooltip label={tooltipLabel} align="top" autoAlign>
<Button className="sb-tooltip-trigger" ref={ref}>
This button has a tooltip
</Button>
<Button ref={ref}>This button has a tooltip</Button>
</Tooltip>
</div>
</div>
Expand All @@ -98,7 +96,7 @@ export const ExperimentalAutoAlign = () => {
export const Duration = () => {
return (
<Tooltip label="Label one" enterDelayMs={0} leaveDelayMs={300}>
<Button className="sb-tooltip-trigger">This button has a tooltip</Button>
<Button>This button has a tooltip</Button>
</Tooltip>
);
};
Expand All @@ -122,7 +120,7 @@ const PlaygroundStory = (props) => {
label={label}
leaveDelayMs={leaveDelayMs}
closeOnActivation={closeOnActivation}>
<button className="sb-tooltip-trigger" type="button">
<button type="button">
<SquareOutline />
</button>
</Tooltip>
Expand Down

0 comments on commit 38e7e92

Please sign in to comment.