From 7ff82816636a4a14053b9402398aba29c0b3c59e Mon Sep 17 00:00:00 2001 From: Alec P Date: Fri, 24 Jul 2026 09:40:46 +0200 Subject: [PATCH 1/2] chore: CTORNDSD-653: add `xs` size option to Badge component - Extended Badge size tokens with `xs` styling. - Updated `Badge.types.ts` to include `xs` in the `BadgeSize` type. - Adjusted Badge stories/docs to support and display the new `xs` size. --- .../src/components/atoms/Badge/Badge.stories.tsx | 14 ++++++++++---- libs/ui/src/components/atoms/Badge/Badge.types.ts | 2 +- libs/ui/src/tokens/badge.ts | 10 ++++++++++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/libs/ui/src/components/atoms/Badge/Badge.stories.tsx b/libs/ui/src/components/atoms/Badge/Badge.stories.tsx index 31052e7..97b2755 100644 --- a/libs/ui/src/components/atoms/Badge/Badge.stories.tsx +++ b/libs/ui/src/components/atoms/Badge/Badge.stories.tsx @@ -49,9 +49,9 @@ const meta: Meta = { }, }, size: { - description: 'Size of the badge (sm, md, lg)', + description: 'Size of the badge (xs, sm, md, lg)', control: { type: 'select' }, - options: ['sm', 'md', 'lg'], + options: ['xs', 'sm', 'md', 'lg'], table: { category: 'Visual Style', defaultValue: { summary: 'md' }, @@ -404,7 +404,7 @@ The \`Badge\` component is used to display small pieces of information, such as