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

feat(components): migrate Toggle to TypeScript #628

Merged
merged 4 commits into from
Jul 2, 2020

Conversation

connor-baer
Copy link
Member

Addresses #516.

Approach and changes

  • migrate Toggle to TypeScript
  • rename Toggle props: 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).

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

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
@connor-baer connor-baer added the feature A new feature or enhancement label Jun 28, 2020
@connor-baer connor-baer added this to the v2.0 milestone Jun 28, 2020
@vercel
Copy link

vercel bot commented Jun 28, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/e0fol1l1k
✅ Preview: https://circuit-ui-git-feature-typescript-toggle.sumup-oss.vercel.app

@codecov
Copy link

codecov bot commented Jun 28, 2020

Codecov Report

Merging #628 into beta will decrease coverage by 0.64%.
The diff coverage is 96.17%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/components/ButtonGroup/ButtonGroup.js 88.23% <ø> (-11.77%) ⬇️
src/components/Pagination/Pagination.tsx 85.00% <ø> (ø)
src/components/Pagination/PaginationService.ts 100.00% <ø> (ø)
...onents/Pagination/components/PageList/PageList.tsx 100.00% <ø> (ø)
...ts/Pagination/components/PageSelect/PageSelect.tsx 100.00% <ø> (ø)
src/components/Popover/Popover.js 92.30% <ø> (-0.92%) ⬇️
src/components/Popover/PopoverService.js 100.00% <ø> (ø)
src/components/ProgressBar/ProgressBar.tsx 100.00% <ø> (ø)
src/components/RadioButton/RadioButton.js 100.00% <ø> (ø)
src/components/SearchInput/SearchInput.tsx 100.00% <ø> (ø)
... and 94 more

@connor-baer connor-baer merged commit 2fb627c into beta Jul 2, 2020
@connor-baer connor-baer deleted the feature/typescript-toggle branch July 2, 2020 11:02
@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2020

🎉 This PR is included in version 2.0.0-beta.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants