Skip to content

feat(badge): added dot style variant#514

Merged
mattrothenberg merged 7 commits into
cloudflare:mainfrom
najlaskr:najla/dot-badges
May 20, 2026
Merged

feat(badge): added dot style variant#514
mattrothenberg merged 7 commits into
cloudflare:mainfrom
najlaskr:najla/dot-badges

Conversation

@najlaskr
Copy link
Copy Markdown
Contributor

Added dot style variant for Badges that need a subtle visual cue (i.e. on Tables)


  • Reviews
    • bonk has reviewed the change
    • automated review not possible because: visual updates, no access to bonk
  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows: ran pnpm lint, pnpm typecheck and visual changes
    • Additional testing not necessary because:

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 14, 2026

npm i https://pkg.pr.new/@cloudflare/kumo@514

commit: c4bd68e

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

Docs Preview

View docs preview

Commit: c4bd68e

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

Visual Regression Report — 24 changed, 14 unchanged

24 screenshot(s) with visual changes:

Button / Variant: Primary

468 px (0.46%) changed

Before After Diff
Before After Diff

Button / Variant: Secondary

161 px (0.16%) changed

Before After Diff
Before After Diff

Button / Variant: Destructive

278 px (0.27%) changed

Before After Diff
Before After Diff

Button / Variant: Secondary Destructive

693 px (0.68%) changed

Before After Diff
Before After Diff

Button / Sizes

702 px (0.69%) changed

Before After Diff
Before After Diff

Button / Icon Only

32 px (0.03%) changed

Before After Diff
Before After Diff

Button / Loading State

197 px (0.19%) changed

Before After Diff
Before After Diff

Button / Disabled State

117 px (0.12%) changed

Before After Diff
Before After Diff

Dialog / Dialog With Actions

200 px (0.2%) changed

Before After Diff
Before After Diff

Dialog / Dialog Basic

241 px (0.24%) changed

Before After Diff
Before After Diff

Dialog / Dialog With Select

130 px (0.13%) changed

Before After Diff
Before After Diff

Dialog / Dialog With Combobox

130 px (0.13%) changed

Before After Diff
Before After Diff

Dialog / Dialog With Dropdown

298 px (0.29%) changed

Before After Diff
Before After Diff

Dialog (Open)

0 px (0%) changed

Before After Diff
Before After Diff

Select / Select Without Label

160 px (0.16%) changed

Before After Diff
Before After Diff

Select / Select With Field

635 px (0.54%) changed

Before After Diff
Before After Diff

Select / Select Placeholder

418 px (0.41%) changed

Before After Diff
Before After Diff

Select / Select Loading

0 px (0%) changed

Before After Diff
Before After Diff

Select / Select Multiple

556 px (0.55%) changed

Before After Diff
Before After Diff

Select / Select Complex

1,305 px (1.1%) changed

Before After Diff
Before After Diff

Select / Select Disabled Items

251 px (0.25%) changed

Before After Diff
Before After Diff

Select / Select Grouped

347 px (0.34%) changed

Before After Diff
Before After Diff

Select / Select Long List

1,428 px (1.21%) changed

Before After Diff
Before After Diff

Select (Open)

0 px (0%) changed

Before After Diff
Before After Diff
14 screenshot(s) unchanged
  • Button / Basic
  • Button / Variant: Ghost
  • Button / Variant: Outline
  • Button / With Icon
  • Button / Title
  • Button / Link as Button
  • Dialog / Dialog Alert
  • Dialog / Dialog Confirmation
  • Select / Select Basic
  • Select / Select Sizes
  • Select / Select With Tooltip
  • Select / Select Custom Rendering
  • Select / Select Disabled Options
  • Select / Select Grouped With Disabled

Generated by Kumo Visual Regression

Comment thread packages/kumo/src/components/badge/badge.tsx Outdated
Comment thread packages/kumo/src/components/badge/badge.tsx Outdated
@mattrothenberg
Copy link
Copy Markdown
Collaborator

/bonk please review

- Move dot colors into KUMO_BADGE_VARIANTS as a proper dimension with
  descriptions, matching the Button component's variant access pattern
- Rename `style` prop to `appearance` to avoid collision with React's
  built-in `style` prop (CSSProperties)
- Use resolveVariant for dotColor lookups from KUMO_BADGE_VARIANTS
- Add badge.test.tsx with coverage for rendering, dot appearance,
  dot colors per variant, and unknown variant safety
- Update variant-safety.test.ts to cover the new appearance dimension
- Add descriptive text to dot badges docs section
@mattrothenberg
Copy link
Copy Markdown
Collaborator

/bonk what do you think?

@mattrothenberg mattrothenberg merged commit b68caba into cloudflare:main May 20, 2026
13 checks passed
@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 20, 2026

@mattrothenberg Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

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