Repository navigation
feat(Badge): add non-semantic color variants - #1109
Merged
Merged
Conversation
cixzhang
force-pushed
the
navi/feat/badge-nonsemantic-colors
branch
2 times, most recently
from
April 4, 2026 03:49
f4e86d1 to
0cd43df
Compare
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsBadge · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
Add 9 non-semantic color variants (blue, cyan, green, orange, pink,
purple, red, teal, yellow) for categorization and tagging use cases
where color doesn't carry semantic meaning.
Non-semantic variants use tinted backgrounds with colored text,
while semantic variants keep their solid backgrounds.
All colors map to existing theme tokens (--color-{color}-background
and --color-{color}-text) — no new tokens needed.
Closes #244
Co-authored-by: Navi <[email protected]>
- Fix token names: --color-background-{color} / --color-text-{color}
- Remove shape prop and dot mode (codemod shipped in #949)
- Add non-semantic colors to XDSBadgeVariantMap
- Remove dot references from docs, tests, and stories
Co-authored-by: Navi <[email protected]>
cixzhang
force-pushed
the
navi/feat/badge-nonsemantic-colors
branch
from
April 4, 2026 14:49
ee7386a to
ad1ab86
Compare
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
cixzhang
added a commit
that referenced
this pull request
Jun 21, 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.
Summary
Add 9 non-semantic color variants to XDSBadge for categorization and tagging use cases where color doesn't carry semantic meaning.
New variants
blue·cyan·green·orange·pink·purple·red·teal·yellowDesign
--color-{color}-background) with colored text (--color-{color}-text)All colors map to existing theme tokens — no new tokens needed.
Changes
XDSBadge.tsx— 9 new variant stylesXDSBadge.test.tsx— tests for all non-semantic variants + xds class nameBadge.stories.tsx— newNonSemanticColorsstoryBadge.doc.mjs— updated variant type and examplesCloses #244
Ref #719