CounterLabel, StateLabel: sync docs.json with deprecated props#8182
CounterLabel, StateLabel: sync docs.json with deprecated props#8182siddharthkp wants to merge 1 commit into
Conversation
Mark CounterLabel scheme and StateLabel variant as deprecated and document their replacements (variant, size)
|
There was a problem hiding this comment.
Pull request overview
Updates Primer React component metadata so generated documentation reflects source-level deprecations for CounterLabel and StateLabel.
Changes:
- Add
StateLabel.sizeto docs metadata and markStateLabel.variantas deprecated. - Add
CounterLabel.variantto docs metadata and markCounterLabel.schemeas 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
|
Added |
docs.json for
CounterLabelandStateLabeldid not reflect deprecations that already exist in the source.Marked
CounterLabel.schemeandStateLabel.variantas deprecated for the docs.Rollout strategy