Skip to content
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

Merged
merged 6 commits into from
Oct 23, 2024

Conversation

Hanxbeen
Copy link
Contributor

@Hanxbeen Hanxbeen commented Aug 3, 2024

  • Updated the ref handling condition from 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.
  • Adjusted the indentation of the label component for consistency and readability. This helps maintain a clean and uniform code style throughout the component.

Closes #<issue_number>

Changelog

New

  • N/A

Changed

  • Ref handling condition updated from Object(ref) === ref to 'current' in ref for improved clarity and alignment with React practices.
  • Indentation of the <label> component adjusted for consistency and readability.

Removed

  • N/A

Testing / Reviewing

To verify these changes:

  1. Review the updated ref handling logic in the Checkbox component to ensure it properly distinguishes between function and object refs.
  2. Verify that the modifications to the <label> start tag are correctly applied, ensuring there are no syntax errors or unexpected issues, and confirm that the tag displays properly.

- 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.
@Hanxbeen Hanxbeen requested a review from a team as a code owner August 3, 2024 02:51
Copy link
Contributor

github-actions bot commented Aug 3, 2024

All contributors have signed the DCO.
Posted by the DCO Assistant Lite bot.

Copy link

netlify bot commented Aug 3, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit d7918fd
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/67193811a5fdf200087f942a
😎 Deploy Preview https://deploy-preview-17097--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 3, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit d7918fd
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6719381178e44f0008a99f84
😎 Deploy Preview https://deploy-preview-17097--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Hanxbeen
Copy link
Contributor Author

Hanxbeen commented Aug 4, 2024

I have read the DCO document and I hereby sign the DCO.

@Hanxbeen
Copy link
Contributor Author

Hanxbeen commented Aug 4, 2024

recheck

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.14%. Comparing base (c6ebc2d) to head (d7918fd).
Report is 10 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit d7918fd
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/671938117556ef00080fc030
😎 Deploy Preview https://deploy-preview-17097--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tay1orjones tay1orjones added this pull request to the merge queue Oct 23, 2024
Merged via the queue into carbon-design-system:main with commit 265dc17 Oct 23, 2024
39 of 40 checks passed
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.

6 participants