Skip to content

Commit 04592de

Browse files
committed
center glossary tooltip story to ensure it is visible on snapshot testing
1 parent 0238a37 commit 04592de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/Glossary/GlossaryTooltip/GlossaryTooltip.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Center } from "@chakra-ui/react"
12
import { Meta, StoryObj } from "@storybook/react"
23

34
import GlossaryTooltipComponent from "."
@@ -9,6 +10,13 @@ const meta = {
910
termKey: "big-endian",
1011
children: "big-endian",
1112
},
13+
decorators: [
14+
(Story) => (
15+
<Center boxSize="md">
16+
<Story />
17+
</Center>
18+
),
19+
],
1220
} satisfies Meta<typeof GlossaryTooltipComponent>
1321

1422
export default meta

0 commit comments

Comments
 (0)