-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix(Checkbox): react/wc parity #18329
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
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. |
✅ Deploy Preview for v11-carbon-web-components 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. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
There was a problem hiding this 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
There was a problem hiding this 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.
packages/web-components/src/components/checkbox/checkbox-group.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/checkbox/checkbox.stories.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/checkbox/checkbox.stories.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/checkbox/checkbox.stories.ts
Outdated
Show resolved
Hide resolved
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. |
Hey @davidmenendez Thanks for reviewing! In Carbon Web Components, I’ve noticed that they use the naming convention def.ts for constants. |
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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 |
Web components Single controls seem to be missing out on a few props like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
2fbb4a9
Closes #17927
Checkbox - react and wc parity
Changelog
New
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.