-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(select): allow empty string for size prop #5473
Conversation
Deploy preview for carbon-elements ready! Built with commit 0532d4f |
Deploy preview for carbon-components-react ready! Built with commit 0532d4f https://deploy-preview-5473--carbon-components-react.netlify.com |
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 to me
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 👍 - Thanks @jendowns!
@asudoh should we just remove the defaultProp with the empty string potentially? Was thinking about this over in the text input PR just now |
Closes #5471
Currently
size
is an empty string but default, but that is not allowed in the propTypes declaration. The generates errors where everSelect
is used (including in storybook built off the latest).Changelog
Changed
size
propTesting / Reviewing
See that there are no propTypes errors in the console when you view the storybook deploy, compared to the
master
branch (or canary) storybook environment.