From ae976943840eeaa0807fbf32c304b1448359c386 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Thu, 13 Mar 2025 11:04:50 +0000 Subject: [PATCH] Fix stories Signed-off-by: Charles de Dreuille --- canon-docs/src/components/Tabs/parts.tsx | 5 +- .../src/components/Text/Text.stories.tsx | 68 +++++++++---------- 2 files changed, 34 insertions(+), 39 deletions(-) diff --git a/canon-docs/src/components/Tabs/parts.tsx b/canon-docs/src/components/Tabs/parts.tsx index 7f074f9188..3d02683cef 100644 --- a/canon-docs/src/components/Tabs/parts.tsx +++ b/canon-docs/src/components/Tabs/parts.tsx @@ -31,10 +31,7 @@ export const Tab = (props: React.ComponentProps) => ( {children} diff --git a/packages/canon/src/components/Text/Text.stories.tsx b/packages/canon/src/components/Text/Text.stories.tsx index 547b637619..9cf2a73f6e 100644 --- a/packages/canon/src/components/Text/Text.stories.tsx +++ b/packages/canon/src/components/Text/Text.stories.tsx @@ -39,51 +39,49 @@ export const Default: Story = { }; export const AllVariants: Story = { - render: () => ( - - - A man looks at a painting in a museum and says, “Brothers and sisters I - have none, but that man's father is my father's son.” Who is - in the painting? - - - A man looks at a painting in a museum and says, “Brothers and sisters I - have none, but that man's father is my father's son.” Who is - in the painting? - - - A man looks at a painting in a museum and says, “Brothers and sisters I - have none, but that man's father is my father's son.” Who is - in the painting? - - - A man looks at a painting in a museum and says, “Brothers and sisters I - have none, but that man's father is my father's son.” Who is - in the painting? - + args: { + ...Default.args, + }, + render: args => ( + + + + + ), }; export const AllWeights: Story = { - render: () => ( - - - A man looks at a painting in a museum and says, “Brothers and sisters I - have none, but that man's father is my father's son.” Who is - in the painting? - - - A man looks at a painting in a museum and says, “Brothers and sisters I - have none, but that man's father is my father's son.” Who is - in the painting? - + args: { + ...Default.args, + }, + render: args => ( + + + + + ), +}; + +export const AllColors: Story = { + args: { + ...Default.args, + }, + render: args => ( + + + + + + ), }; export const Responsive: Story = { args: { + ...Default.args, variant: { xs: 'label', md: 'body', @@ -93,7 +91,7 @@ export const Responsive: Story = { export const Playground: Story = { render: () => ( - + Subtitle A man looks at a painting in a museum and says, “Brothers and sisters I