From 91a6a7f8033a19e022f429a1692474adcebec5d1 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Fri, 30 May 2025 07:09:59 +0100 Subject: [PATCH] Update default size for Button Signed-off-by: Charles de Dreuille --- .../src/components/Button/Button.stories.tsx | 16 +++++++++------- packages/canon/src/components/Button/Button.tsx | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/canon/src/components/Button/Button.stories.tsx b/packages/canon/src/components/Button/Button.stories.tsx index fffc31b488..c0519cb279 100644 --- a/packages/canon/src/components/Button/Button.stories.tsx +++ b/packages/canon/src/components/Button/Button.stories.tsx @@ -34,15 +34,17 @@ const meta = { options: ['primary', 'secondary'], }, }, - args: { - size: 'medium', - variant: 'primary', - }, } satisfies Meta; export default meta; type Story = StoryObj; +export const Default: Story = { + args: { + children: 'Button', + }, +}; + export const Variants: Story = { args: { children: 'Button', @@ -72,12 +74,12 @@ export const Sizes: Story = { }, render: () => ( - + ), }; diff --git a/packages/canon/src/components/Button/Button.tsx b/packages/canon/src/components/Button/Button.tsx index ab70f168c8..e9774ad083 100644 --- a/packages/canon/src/components/Button/Button.tsx +++ b/packages/canon/src/components/Button/Button.tsx @@ -24,7 +24,7 @@ import type { ButtonProps } from './types'; export const Button = forwardRef( (props: ButtonProps, ref) => { const { - size = 'medium', + size = 'small', variant = 'primary', disabled, iconStart,