Skip to content

CounterLabel, StateLabel: sync docs.json with deprecated props#8182

Open
siddharthkp wants to merge 1 commit into
mainfrom
siddharthkp/counterlabel-statelabel-docs-deprecated
Open

CounterLabel, StateLabel: sync docs.json with deprecated props#8182
siddharthkp wants to merge 1 commit into
mainfrom
siddharthkp/counterlabel-statelabel-docs-deprecated

Conversation

@siddharthkp

@siddharthkp siddharthkp commented Jul 17, 2026

Copy link
Copy Markdown
Member

docs.json for CounterLabel and StateLabel did not reflect deprecations that already exist in the source.

Marked CounterLabel.scheme and StateLabel.variant as deprecated for the docs.

Rollout strategy

  • None; documentation metadata only

Mark CounterLabel scheme and StateLabel variant as deprecated and document their replacements (variant, size)
@siddharthkp siddharthkp added the skip changeset This change does not need a changelog label Jul 17, 2026
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a910144

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Primer React component metadata so generated documentation reflects source-level deprecations for CounterLabel and StateLabel.

Changes:

  • Add StateLabel.size to docs metadata and mark StateLabel.variant as deprecated.
  • Add CounterLabel.variant to docs metadata and mark CounterLabel.scheme as deprecated.
Show a summary per file
File Description
packages/react/src/StateLabel/StateLabel.docs.json Adds size prop metadata and marks variant as deprecated in docs.
packages/react/src/CounterLabel/CounterLabel.docs.json Adds variant prop metadata and marks scheme as deprecated in docs.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 3
  • Review effort level: Low

Comment on lines +19 to +24
{
"name": "variant",
"type": "'primary' | 'secondary'",
"defaultValue": "",
"description": "Pass in 'primary' for a darker background and inverse text, or 'secondary' for a lighter background and primary text. Omitting the variant prop renders the default counter scheme"
},
Comment on lines 26 to +30
"name": "scheme",
"type": "'primary' | 'secondary'",
"defaultValue": "",
"description": "Pass in 'primary' for a darker background and inverse text, or 'secondary' for a lighter background and primary text. Omitting the scheme prop renders the default counter scheme"
"description": "Use `variant` instead.",
"deprecated": true
"type": "'small' | 'normal'",
"defaultValue": "'normal'"
"defaultValue": "'normal'",
"description": "Use `size` instead.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants