-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor(Button): convert Button component family to TypeScript #13811
refactor(Button): convert Button component family to TypeScript #13811
Conversation
✅ Deploy Preview for carbon-components-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
[`${prefix}--btn--sm`]: small || size === 'sm', | ||
[`${prefix}--btn--md`]: size === 'field' || size === 'md', |
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.
This could possibly be a breaking change, even if it should have been deprecated before now? thoughts @tay1orjones ?
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.
@tay1orjones can you comment on the above?
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.
@tay1orjones can you take a look?
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.
hey @lewandom Taylor is OOO until next week - we'll make sure to take a look early next week :)
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.
@lewandom Hey sorry for the delay! Yeah unfortunately we'll need to leave small
in for now and mark it as deprecated.
The removal of the check for field
should be fine though, that's no longer an accepted value for size
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.
@tay1orjones restored, please check.
3c5e950
to
f1dcd2a
Compare
@alisonjoseph @tay1orjones can you take another look? |
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.
Looks good, thanks!
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.
lgtm!!
47085f2
to
72f69b1
Compare
Closes #13229
Add TypeScript typings to Button, ButtonSkeleton, DangerButton and ButtonSet components.
Changelog
Changed
Removed
Testing / Reviewing
The Button component family imports for the storybook should be valid and rendering. In a TypeScript environment, you should be able to import and reference the Button family component and its typings.