Skip to content

Commit d316174

Browse files
codingwolf-atlifeiscontent
authored andcommitted
Refactor Dialog and Drawer stories to use IconButtonIcon
- Updated the `Dialog` and `Drawer` stories to import and utilize `IconButtonIcon` for rendering the close icon, enhancing the visual consistency and modularity of the components. - This change improves the integration of icon buttons within the dialog and drawer components, aligning with recent updates to the UI library.
1 parent 72e17d4 commit d316174

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/propel/src/ui/dialog/dialog.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
22
import { X } from "lucide-react";
33
import { expect, userEvent, waitFor, within } from "storybook/test";
44

5-
import { IconButton } from "../../components/icon-button";
65
import { Button } from "../button";
6+
import { IconButton, IconButtonIcon } from "../icon-button";
77
import {
88
Dialog,
99
DialogActions,
@@ -78,7 +78,9 @@ export const Anatomy: Story = {
7878
aria-label="Close"
7979
render={<DialogClose />}
8080
>
81-
<X />
81+
<IconButtonIcon>
82+
<X />
83+
</IconButtonIcon>
8284
</IconButton>
8385
</DialogHeader>
8486
<DialogBody>

packages/propel/src/ui/drawer/drawer.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
22
import { X } from "lucide-react";
33
import { expect, userEvent, waitFor, within } from "storybook/test";
44

5-
import { IconButton } from "../../components/icon-button";
65
import { Button } from "../button";
6+
import { IconButton, IconButtonIcon } from "../icon-button";
77
import {
88
Drawer,
99
DrawerBackdrop,
@@ -82,7 +82,9 @@ export const Anatomy: Story = {
8282
aria-label="Close"
8383
render={<DrawerClose />}
8484
>
85-
<X />
85+
<IconButtonIcon>
86+
<X />
87+
</IconButtonIcon>
8688
</IconButton>
8789
</DrawerHeader>
8890
<DrawerBody>Panel body content goes here.</DrawerBody>

0 commit comments

Comments
 (0)