-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ref handling and adjust label component indentation #17097
Conversation
- Updated the ref handling condition from Object(ref) === ref to 'current' in ref for improved clarity and accuracy. - Adjusted the indentation of the label component for consistency and readability.
All contributors have signed the DCO. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I have read the DCO document and I hereby sign the DCO. |
recheck |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17097 +/- ##
=======================================
Coverage 80.14% 80.14%
=======================================
Files 406 406
Lines 14030 14030
Branches 4343 4343
=======================================
Hits 11245 11245
Misses 2619 2619
Partials 166 166 ☔ View full report in Codecov by Sentry. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
265dc17
Hey there! v11.69.0 was just released that references this issue/PR. |
…sign-system#17097) * Refactor ref handling and label indentation - Updated the ref handling condition from Object(ref) === ref to 'current' in ref for improved clarity and accuracy. - Adjusted the indentation of the label component for consistency and readability. * chore: run yarn format --------- Co-authored-by: Taylor Jones <[email protected]> Co-authored-by: Taylor Jones <[email protected]> Co-authored-by: Alison Joseph <[email protected]>
Object(ref) === ref
to'current' in ref
for improved clarity and accuracy. This change simplifies the check for object refs and aligns with common React practices.Closes #<issue_number>
Changelog
New
Changed
Object(ref) === ref
to'current' in ref
for improved clarity and alignment with React practices.<label>
component adjusted for consistency and readability.Removed
Testing / Reviewing
To verify these changes:
Checkbox
component to ensure it properly distinguishes between function and object refs.<label>
start tag are correctly applied, ensuring there are no syntax errors or unexpected issues, and confirm that the tag displays properly.