Repository navigation
fix(theme-neutral): match StatusDot fills to filled Badge colors - #4047
Merged
Merged
Conversation
ernestt
requested review from
cixzhang,
ejhammond and
imdreamrunner
as code owners
July 17, 2026 23:38
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
This branch was successfully deployed
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.
What
In the neutral theme,
StatusDotnow uses the same vivid fills as the filled semanticBadge, so a dot and its matching badge read as one status color language.Why
StatusDot.tsxmaps each variant straight to a raw semantic token:--color-success#007004--color-warning#745b00--color-error#a50c25--color-accent#262626In light mode those are the dark T30/T40 stops designed to sit as text on a pastel surface. Rendered as an 8px solid dot they read muddy — dark green, brown (not yellow), maroon, and near-black. Meanwhile the filled Badge uses vivid saturated stops.
Change
Adds a
statusdot:component override toneutralTheme.tspointing the four saturated variants at the exact Badge fills (same values theprogressbar:override already reuses):success→light-dark(#198100, #64af4c)warning→#ffce2ferror→light-dark(#e33f4a, #ff705d)accent→light-dark(#0074e2, #6d9cfe)(StatusDot'saccentis the info/attention color, so it pairs with the info badge)neutralis intentionally left on the component default (--color-icon-secondary, a visible mid-gray). The neutral badge bg is a near-invisible light gray that works as a pill but would disappear as a dot — and it isn't one of the "too dark" cases.Generated CSS (
.astryx-statusdot.*) verified to match.astryx-badge.*exactly; theme package builds and 285 theme/StatusDot tests pass.