Skip to content
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

Merged
merged 2 commits into from
Feb 27, 2020
Merged

fix(select): allow empty string for size prop #5473

merged 2 commits into from
Feb 27, 2020

Conversation

jendowns
Copy link
Contributor

Closes #5471

Currently size is an empty string but default, but that is not allowed in the propTypes declaration. The generates errors where ever Select is used (including in storybook built off the latest).

Changelog

Changed

  • allow empty string for size prop

Testing / 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.

@jendowns jendowns requested a review from a team as a code owner February 27, 2020 21:37
@ghost ghost requested review from aledavila and emyarod February 27, 2020 21:37
@jendowns jendowns changed the title fix(select): add empty string for size prop fix(select): allow empty string for size prop Feb 27, 2020
@netlify
Copy link

netlify bot commented Feb 27, 2020

Deploy preview for carbon-elements ready!

Built with commit 0532d4f

https://deploy-preview-5473--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 27, 2020

Deploy preview for carbon-components-react ready!

Built with commit 0532d4f

https://deploy-preview-5473--carbon-components-react.netlify.com

Copy link
Member

@emyarod emyarod left a 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

Copy link
Contributor

@asudoh asudoh left a 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 asudoh merged commit a1832c4 into carbon-design-system:master Feb 27, 2020
@joshblack
Copy link
Contributor

joshblack commented Feb 27, 2020

@asudoh should we just remove the defaultProp with the empty string potentially? Was thinking about this over in the text input PR just now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Select]: size prop defaults to empty string, but its propType does not allow that
4 participants