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

fix(Checkbox): react/wc parity #18329

Merged
merged 10 commits into from
Feb 12, 2025

Conversation

anamikaanu96
Copy link
Contributor

Closes #17927

Checkbox - react and wc parity

Changelog

New

  • packages/web-components/src/components/checkbox/defs.ts

Changed

-packages/web-components/src/components/checkbox/checkbox-group.ts
-packages/web-components/src/components/checkbox/checkbox.scss
-packages/web-components/src/components/checkbox/checkbox.stories.ts

Testing / Reviewing

Added orientation prop and corresponding style.
Tested using storybook , can be checked in storybook controls.

@anamikaanu96 anamikaanu96 requested a review from a team as a code owner January 13, 2025 14:55
Copy link

netlify bot commented Jan 13, 2025

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

Name Link
🔨 Latest commit 23821c6
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/67852965b2b9f30008a67f3e
😎 Deploy Preview https://deploy-preview-18329--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.

Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 23821c6
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/67852966e8aacc0008f73733
😎 Deploy Preview https://deploy-preview-18329--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 Jan 13, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 23821c6
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/67852965d6ca6300089115be
😎 Deploy Preview https://deploy-preview-18329--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.

Copy link

netlify bot commented Jan 13, 2025

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

Name Link
🔨 Latest commit 07a2b9b
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/67ab45da27ed73000955cd53
😎 Deploy Preview https://deploy-preview-18329--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.

Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 07a2b9b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/67ab45dafc021a00081a59b5
😎 Deploy Preview https://deploy-preview-18329--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.

Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 07a2b9b
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/67ab45dacf8a5c0008067950
😎 Deploy Preview https://deploy-preview-18329--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

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.01%. Comparing base (bc04c97) to head (07a2b9b).
Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18329      +/-   ##
==========================================
- Coverage   84.16%   84.01%   -0.16%     
==========================================
  Files         408      408              
  Lines       14450    14477      +27     
  Branches     4666     4664       -2     
==========================================
+ Hits        12162    12163       +1     
- Misses       2123     2147      +24     
- Partials      165      167       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anamikaanu96 anamikaanu96 changed the title Checkbox parity fix(Checkbox): react/wc parity Jan 14, 2025
Copy link
Contributor

@davidmenendez davidmenendez left a comment

Choose a reason for hiding this comment

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

looks good. one minor nitpick. as a convention we should continue to stick with constants.{ts,js,etc} instead of defs

@tay1orjones tay1orjones requested review from a team and thyhmdo and removed request for a team January 14, 2025 14:26
Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

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

Looks great! Just a few small changes.

@tay1orjones
Copy link
Member

Hey, thanks for putting up this PR! I just added @thyhmdo as a reviewer to be sure we get a ux and visual review on this.

@anamikaanu96
Copy link
Contributor Author

looks good. one minor nitpick. as a convention we should continue to stick with constants.{ts,js,etc} instead of defs

Hey @davidmenendez Thanks for reviewing! In Carbon Web Components, I’ve noticed that they use the naming convention def.ts for constants.

@anamikaanu96 anamikaanu96 requested a review from kennylam January 16, 2025 05:49
Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

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

Hey @anamikaanu96
LGTM, just one minor thing. We should remove the Playground stories and add the controls to the Default stories, to match React storybook.

Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

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

LGTM!

@ariellalgilmore
Copy link
Member

ariellalgilmore commented Feb 5, 2025

Hi @anamikaanu96, an issue was brought up in slack. https://ibm-studios.slack.com/archives/CL83LMKSA/p1738774002789579. Looks like some accessibility errors are happening in web components and not in react. We could open a seperate issue for this or fix it here

@thyhmdo
Copy link
Member

thyhmdo commented Feb 10, 2025

Web components Single controls seem to be missing out on a few props like defaultChecked and indeterminate?

Copy link
Member

@thyhmdo thyhmdo left a comment

Choose a reason for hiding this comment

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

looks great!

@guidari guidari added this pull request to the merge queue Feb 12, 2025
Merged via the queue into carbon-design-system:main with commit 2fbb4a9 Feb 12, 2025
37 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.

React|WC Parity: Checkbox
7 participants