From 20fe914898ca94dda3d121fa5dfe6fa0a276c5ab Mon Sep 17 00:00:00 2001 From: Nicolas Pieuchot Date: Fri, 5 Jan 2024 10:30:11 +0100 Subject: [PATCH] :lipstick: Enlarging number field, adding size to storybook. --- Storybook/components/NumberSelector/NumberSelector.stories.tsx | 2 ++ src/components/numberField/NumberField.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Storybook/components/NumberSelector/NumberSelector.stories.tsx b/Storybook/components/NumberSelector/NumberSelector.stories.tsx index 05dddbac..988fbf58 100644 --- a/Storybook/components/NumberSelector/NumberSelector.stories.tsx +++ b/Storybook/components/NumberSelector/NumberSelector.stories.tsx @@ -16,6 +16,7 @@ export default { argTypes: { onValueChange: { action: 'onValueChange' }, decimal: { control: { type: 'radio' }, options: [true, false] }, + size: { control: { type: 'radio' }, options: ['m', 's'] }, }, decorators: [ @@ -43,6 +44,7 @@ const NumberSelectorTester = (args) => { ( borderColor: borderColor, width: - size === 's' ? (decimal ? 63 : 43) : decimal ? 110 : 72, + size === 's' ? (decimal ? 63 : 48) : decimal ? 110 : 72, color: textColor, fontStyle: 'normal',