refactor: rewrite IconSwitch in typescript and add types#19141
refactor: rewrite IconSwitch in typescript and add types#19141heloiselui merged 3 commits intocarbon-design-system:mainfrom
IconSwitch in typescript and add types#19141Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19141 +/- ##
==========================================
- Coverage 84.65% 84.65% -0.01%
==========================================
Files 373 373
Lines 14715 14713 -2
Branches 4846 4819 -27
==========================================
- Hits 12457 12455 -2
+ Misses 2108 2107 -1
- Partials 150 151 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // TODO: | ||
| // 1. Should the deprecated options be deleted? | ||
| // 2. The list doesn't include all of the options available in the | ||
| // component. Is it supposed to? |
There was a problem hiding this comment.
Yes, the deprecated options should be deleted and use the new options instead. I also checked with @thyhmdo on caret alignment and confirmed that toolip placements should not include -start/-end for left/right and they should default to the center alignment.
Those alignments should be used for popover.
2c1adee
No issue.
Rewrote
IconSwitchin TypeScript.Changelog
New
IconSwitch.Changed
IconSwitchin TypeScript.Switchin the component docs with IconSwitch`.Testing / Reviewing
I left some
TODOs with questions that hopefully someone can answer.yarn test packages/react