-
Notifications
You must be signed in to change notification settings - Fork 30
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(Button): button typing issues #2823
Conversation
This reverts commit 8ebd730.
packages/gamut/src/Button/shared.ts
Outdated
| typeof StrokeButton | ||
| typeof TextButton; | ||
|
||
// export type ButtonComponentProps = ComponentProps<typeof FillButton>; |
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.
should this be removed?
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.
yes! will clean up
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.
the changes look good! based on testing it out & the implementation PR this is a huge improvement in type safety! 🎊
…y/gamut into cass-web-1833-anchorbase
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Correct Button types to not be overly permissive
PR Checklist
Testing Instructions
PR Links and Envs
I will not be shipping this until the above are also reviewed + ready to ship