-
Notifications
You must be signed in to change notification settings - Fork 130
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
feat(components): migrate Toggle to TypeScript #628
Conversation
feature/typescript-toggle
This makes the props consistent with the Checkbox and RadioButton components. BREAKING CHANGE: The **Toggle** component's `on`, `labelOn`, and `labelOff` props have been renamed to `checked`, `labelChecked`, and `labelUnchecked` (🤖 _toggle-checked-prop_). feature/typescript-toggle
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/e0fol1l1k |
Codecov Report
@@ Coverage Diff @@
## beta #628 +/- ##
==========================================
- Coverage 94.25% 93.61% -0.65%
==========================================
Files 137 133 -4
Lines 2194 2192 -2
Branches 621 608 -13
==========================================
- Hits 2068 2052 -16
- Misses 103 118 +15
+ Partials 23 22 -1
|
feature/typescript-toggle
🎉 This PR is included in version 2.0.0-beta.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Addresses #516.
Approach and changes
BREAKING CHANGE:
The Toggle component's
on
,labelOn
, andlabelOff
props have been renamed tochecked
,labelChecked
, andlabelUnchecked
(🤖 toggle-checked-prop).Definition of done