diff --git a/src/components/Banners/DismissableBanner/DismissableBanner.stories.tsx b/src/components/Banners/DismissableBanner/DismissableBanner.stories.tsx
index 2a962cb3ea4..e3448a96a08 100644
--- a/src/components/Banners/DismissableBanner/DismissableBanner.stories.tsx
+++ b/src/components/Banners/DismissableBanner/DismissableBanner.stories.tsx
@@ -1,16 +1,23 @@
import React from "react"
import { FaInfoCircle } from "react-icons/fa"
-import { Button, Center, Icon, Text } from "@chakra-ui/react"
+import { Center, Container, Icon, Text } from "@chakra-ui/react"
import { Meta, StoryObj } from "@storybook/react"
import DismissableBanner from "."
const meta = {
- title: "DismissableBanner",
+ title: "Molecules / Navigation",
component: DismissableBanner,
parameters: {
- chromatic: { disableSnapshot: false },
+ layout: "fullscreen",
},
+ decorators: [
+ (Story) => (
+
+
+
+ ),
+ ],
} satisfies Meta
export default meta
@@ -19,25 +26,21 @@ type Story = StoryObj
export const Basic: Story = {
args: {
storageKey: "dismissable-banner-1",
- children: This is a dismissable banner notification.,
+ children: This is a dismissable banner notification.,
},
- render: (args) => ,
}
export const WithLongText: Story = {
args: {
storageKey: "dismissable-banner-2",
children: (
-
-
- This is a dismissable banner with a very long text content to see how
- it handles overflow and wrapping. It should be able to manage the text
- properly without breaking the layout.
-
-
+
+ This is a dismissable banner with a very long text content to see how it
+ handles overflow and wrapping. It should be able to manage the text
+ properly without breaking the layout.
+
),
},
- render: (args) => ,
}
export const WithIcon: Story = {
@@ -50,5 +53,4 @@ export const WithIcon: Story = {
),
},
- render: (args) => ,
}