Repository navigation
docs: clarify reference element label object props - #7919
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. WalkthroughThe label documentation for ChangesReference label documentation
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This documentation-only change matches the implementation, and its examples use supported props; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Omnidoc is likely going to complain. Watch the builds please, if it fails it tells you what to do |
Bundle ReportBundle size has no change ✅ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7919 +/- ##
==========================================
+ Coverage 88.92% 88.96% +0.03%
==========================================
Files 647 647
Lines 15851 15852 +1
Branches 4159 4159
==========================================
+ Hits 14096 14102 +6
+ Misses 1561 1556 -5
Partials 194 194 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Correct the object-valued
labeldocumentation forReferenceArea,ReferenceDot, andReferenceLine: the object supplies props to a singleLabel, notLabelList. Add one example per component usingvalueandposition.Related Issue
Related to #4438. This is a small API documentation correction, not a complete solution to that broader issue.
Motivation and Context
parseLabelspreads an object-valued label ontoLabel. The current description points users toward the wrong component's props. The correction lives in the source JSDoc so both the website and Storybook docs receive it.How Has This Been Tested?
On Windows with Node.js 24.21.0:
npm run omnidoc; inspected the generated text and examples for all three components.npm run test-omnidoc -- --maxWorkers=2: 1,099 tests passed.npm run check-types-lib: passed.npm run lint: passed with 17 warnings in unchanged files.git diff --check: passed.Screenshots (if appropriate):
Not applicable; JSDoc-only correction.
Types of changes
Checklist:
No runtime behavior or public types change; existing tests and documentation generation cover this correction.
Summary by CodeRabbit