feat: CTORNDSD-653: add xs size option to Badge component - #19
Merged
Conversation
- 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.
There was a problem hiding this comment.
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
xssizing tokens for Badge (height, typography, spacing). - Extended the
BadgeSizetype to includexs. - 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.
…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.
tjeleascov
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
xsstyling.Badge.types.tsto includexsin theBadgeSizetype.xssize.