-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[core] Fix propTypes in components where OverridableStringUnion is used #30682
Conversation
It seems the framer:build is outputting some bogus code, no idea how to fix |
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 great, thanks for the contribution!
I am afraid we need to remove these props. You can search for |
@@ -171,7 +171,10 @@ Button.propTypes /* remove-proptypes */ = { | |||
* The color of the component. It supports those theme colors that make sense for this component. | |||
* @default 'primary' | |||
*/ | |||
color: PropTypes.oneOf(['context', 'danger', 'info', 'neutral', 'primary', 'success', 'warning']), | |||
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ |
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.
@siriwatknp FYI
As mentioned by @mnajdova I've created a PR to add missing string annotations for props that use the
OverridableStringUnion
Fixes #30715