From ab61c8d3aae8fb4aa182ca1c303e8b3de8118b42 Mon Sep 17 00:00:00 2001 From: Nicolas Pieuchot Date: Thu, 30 Nov 2023 17:58:45 +0100 Subject: [PATCH] :lipstick: Helens review fixes. --- Storybook/components/Label/Label.stories.tsx | 4 ++++ src/components/label/Label.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Storybook/components/Label/Label.stories.tsx b/Storybook/components/Label/Label.stories.tsx index aa0314a9..97ac1cb8 100644 --- a/Storybook/components/Label/Label.stories.tsx +++ b/Storybook/components/Label/Label.stories.tsx @@ -24,6 +24,10 @@ export default { 'neutral', ], }, + size: { + control: { type: 'radio' }, + options: ['m', 's'], + }, type: { control: { type: 'radio' }, options: ['outlined', 'filled', 'soft'], diff --git a/src/components/label/Label.tsx b/src/components/label/Label.tsx index befccf3a..3a344ce3 100644 --- a/src/components/label/Label.tsx +++ b/src/components/label/Label.tsx @@ -176,7 +176,7 @@ export const Label = (props: Props) => { {...props} style={styles.text} size={size == 'm' ? 'B1' : 'B2'} - weight='bold' + weight={size == 'm' ? 'bold' : 'semi-bold'} > {text}