Skip to content

fix(site/src/components/Badge): bump sm badges from text-2xs to text-xs - #28517

Closed
tracyjohnsonux wants to merge 1 commit into
mainfrom
tracyjohnsonux/badge-sm-text-xs
Closed

fix(site/src/components/Badge): bump sm badges from text-2xs to text-xs#28517
tracyjohnsonux wants to merge 1 commit into
mainfrom
tracyjohnsonux/badge-sm-text-xs

Conversation

@tracyjohnsonux

Copy link
Copy Markdown
Contributor

Badge size="sm" renders text at text-2xs (10px). This was tolerable while MUI's CssBaseline applied a 14px body typography baseline, but since the MUI/Emotion removal (#27821) dropped that baseline, inherited text defaults to 16px and the 10px badges read as broken — e.g. the Type/Tags chips on the provisioner jobs page and the pills on the AI Gateway sessions pages.

Changes

  • sm size: text-2xs (10px) → text-xs (12px).
  • sm height: h-5.5 (22px) → h-6 (24px) so the 1rem text-xs line-height plus py-1 fits without overflowing the fixed height.

xs (10px, used for genuinely dense contexts) and md are unchanged. This affects every size="sm" consumer by design — that is the point: it fixes all of the too-small chips in one place (provisioner type/tags, network call pills, etc.).

Notes for reviewers

Related: #28477 (token badge icon sizing/cleanup; its font-size aspect is superseded by this PR).

🤖 Generated by Coder Agents on behalf of @tracyjohnsonux

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants