Skip to content

Commit

Permalink
chore: add ariaLabel to icon component in Tooltip/TooltipPrimitive St…
Browse files Browse the repository at this point in the history
…orybook
  • Loading branch information
sarkaaa committed Nov 28, 2024
1 parent 4810cb6 commit 9c1275c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/orbit-components/src/Tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";

import { PLACEMENTS, AUTO_PLACEMENTS } from "../common/placements";
import * as Icons from "../icons";
import Airplane from "../icons/Airplane";
import { SIZE_OPTIONS } from "./consts";
import Stack from "../Stack";
import Alert from "../Alert";
Expand Down Expand Up @@ -47,7 +47,7 @@ export const Default: Story = {
render: args => (
<Stack justify="center">
<Tooltip {...args}>
<Icons.Airplane />
<Airplane ariaLabel="More information" />
</Tooltip>
</Stack>
),
Expand Down Expand Up @@ -149,7 +149,7 @@ export const WithImageInside: Story = {
</Stack>
}
>
<Icons.Airplane />
<Airplane ariaLabel="More information" />
</Tooltip>
),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from "react";
import { action } from "@storybook/addon-actions";
import type { Meta, StoryObj } from "@storybook/react";

import * as Icons from "../../icons";
import Airplane from "../../icons/Airplane";
import Stack from "../../Stack";
import Alert from "../../Alert";
import Text from "../../Text";
Expand Down Expand Up @@ -43,7 +43,7 @@ export const Default: Story = {
render: args => (
<Stack justify="center">
<TooltipPrimitive {...args}>
<Icons.Airplane />
<Airplane ariaLabel="More information" />
</TooltipPrimitive>
</Stack>
),
Expand Down Expand Up @@ -147,7 +147,7 @@ export const WithImageInside: Story = {
</Stack>
}
>
<Icons.Airplane />
<Airplane ariaLabel="More information" />
</TooltipPrimitive>
),

Expand Down

0 comments on commit 9c1275c

Please sign in to comment.