Skip to content

feat: CTORNDSD-653: add xs size option to Badge component - #19

Merged
Zlodej43sm merged 3 commits into
developfrom
feat/CTORNDSD-653-Badge-size
Jul 24, 2026
Merged

feat: CTORNDSD-653: add xs size option to Badge component#19
Zlodej43sm merged 3 commits into
developfrom
feat/CTORNDSD-653-Badge-size

Conversation

@Zlodej43sm

Copy link
Copy Markdown
Collaborator
  • 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.

- 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an extra-small (xs) size option to the Badge component in gd-design-library, extending the design-token-driven sizing system and updating Storybook docs to expose the new size.

Changes:

  • Added xs sizing tokens for Badge (height, typography, spacing).
  • Extended the BadgeSize type to include xs.
  • Updated Badge Storybook controls/docs and examples to include xs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
libs/ui/src/tokens/badge.ts Adds xs size styling tokens for Badge.
libs/ui/src/components/atoms/Badge/Badge.types.ts Extends BadgeSize union to support xs.
libs/ui/src/components/atoms/Badge/Badge.stories.tsx Updates Storybook argTypes/docs/examples to include xs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libs/ui/src/components/atoms/Badge/Badge.types.ts
…te related styles, docs, and examples

- Added `xs` size support to Badge component schema.
- Updated examples, README, and docs to include `xs` size.
- Fixed `flexWrap` property from `noWrap` to `nowrap` in defaultTheme.json.
@Zlodej43sm
Zlodej43sm merged commit 3d12820 into develop Jul 24, 2026
2 checks passed
@Zlodej43sm
Zlodej43sm deleted the feat/CTORNDSD-653-Badge-size branch July 24, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants