Skip to content

Commit

Permalink
feat(TooltipPrimitive): add ariaLabel to icon component in Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkaaa committed Nov 27, 2024
1 parent a4afab7 commit b242094
Showing 1 changed file with 3 additions and 3 deletions.
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 b242094

Please sign in to comment.