Skip to content

feat(fuselage)!: Remove the ghost variant and the disabled prop from Badge - #2147

Merged
juliajforesti merged 2 commits into
mainfrom
feat/remove-badge-ghost-variant
Aug 10, 2026
Merged

feat(fuselage)!: Remove the ghost variant and the disabled prop from Badge#2147
juliajforesti merged 2 commits into
mainfrom
feat/remove-badge-ghost-variant

Conversation

@ivans-netto

@ivans-netto ivans-netto commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Supersedes #2146 (closed automatically by a head-branch rename).

Summary

Task

  • Removes the ghost variant from the Badge component (type union, SCSS theme vars, &--ghost block, and Storybook variant options), following the design team decision recorded in the review of fix(fuselage-tokens): badge level-1 contrast a11y failing #2144: ghost was discontinued in favor of secondary and no longer exists in Figma.
  • Also removes the disabled prop and its visual state (prop, modifier class, SCSS vars/block, Storybook argType and story, spec coverage, and the corresponding visual regression golden).

Both removals are breaking for external consumers, so the changeset follows the repo convention for 0.x breaking changes (minor bump with a feat(fuselage)!: message identical to this PR title). A search on RocketChat/Rocket.Chat (via gh search code, 2026-08-07) confirmed no usage of variant='ghost' nor <Badge disabled>.

Test plan

  • yarn jest Badge.spec — 9/9 passing
  • yarn visual-regression-update — 506/506 passing; no golden changed besides the deletion of data-display-badge--disabled-desktop.png (there is no ghost story)
  • yarn eslint / stylelint / prettier clean on the touched files; API report (fuselage.api.md) regenerated

🤖 Generated with Claude Code

ivans-netto and others added 2 commits August 7, 2026 13:23
…rom `Badge`

The ghost variant was discontinued in favor of secondary and no longer
exists in the design system. The disabled visual state was removed along
with it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7d3273d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rocket.chat/fuselage Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mergify

mergify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@juliajforesti
juliajforesti merged commit 9aaeab5 into main Aug 10, 2026
11 checks passed
@juliajforesti
juliajforesti deleted the feat/remove-badge-ghost-variant branch August 10, 2026 13:05
@github-actions github-actions Bot mentioned this pull request Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants