-
Notifications
You must be signed in to change notification settings - Fork 127
feat(components): Migrate Badge component to typescript #624
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/m6idiny2r |
Codecov Report
@@ Coverage Diff @@
## beta #624 +/- ##
==========================================
- Coverage 93.87% 93.84% -0.04%
==========================================
Files 135 135
Lines 2203 2208 +5
Branches 631 632 +1
==========================================
+ Hits 2068 2072 +4
- Misses 112 113 +1
Partials 23 23
|
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.
Fantastic! 💯
@@ -130,8 +130,8 @@ exports[`Badge should have hover/active styles only when the onClick handler is | |||
border: 0; | |||
} | |||
|
|||
<div | |||
class="circuit-0 circuit-1" | |||
<button |
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.
😍 I get really excited about semantic markup
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.
@connor-baer any idea why is the codecov complaining? 🤔 🙂
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.
You can view the coverage diff by clicking on the "Impacted files" in the comment above. Looks like it's this line in the Badge.tsx file:
The !currentColor
condition is made impossible by TypeScript, but I'd leave it in for projects that use JavaScript. So, ignore this coverage drop and merge anyway :)
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.
🚀
Oops sorry, 2 minutes late 🙈 |
🎉 This PR is included in version 2.0.0-beta.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@robinmetral Thanks for the thorough review! 🙌 @hleote Do you wanna address these points in the next PR to update the design? |
Yeah that's probably a good idea... Thanks for the review @robinmetral 🙂 👍 |
Here you go: https://www.figma.com/file/aORNKPp6e3xbpkYrkfoVhW/WIP-Circuit-UI-Mobile?node-id=1802%3A479 |
@robinmetral I addressed your PR comments in #633. |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Addresses #516
Purpose
Increase the usage of TypeScript in our code base.
Approach and changes
Definition of done