Skip to content

Commit

Permalink
fix: some Tooltip position stories use span, not Button
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Jul 7, 2023
1 parent c2af151 commit 5a79b91
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
DownloadIcon,
Tooltip,
TooltipProps,
Typography,
} from "@okta/odyssey-react-mui";
import { MuiThemeDecorator } from "../../../../.storybook/components";
import { userEvent, within } from "@storybook/testing-library";
Expand Down Expand Up @@ -145,16 +146,16 @@ export const Placement: StoryObj<TooltipProps> = {
return (
<>
<Tooltip text="Top" placement="top" ariaType="label">
<Button variant="primary" text="Top" />
<Typography component="span">Bow</Typography>
</Tooltip>
<Tooltip text="Right" placement="right" ariaType="label">
<Button variant="primary" text="Right" />
<Typography component="span">Starboard</Typography>
</Tooltip>
<Tooltip text="Bottom" placement="bottom" ariaType="label">
<Button variant="primary" text="Bottom" />
<Typography component="span">Port</Typography>
</Tooltip>
<Tooltip text="Left" placement="left" ariaType="label">
<Button variant="primary" text="Left" />
<Typography component="span">Stern</Typography>
</Tooltip>
</>
);
Expand Down

0 comments on commit 5a79b91

Please sign in to comment.