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

feat(select): add height variations to select #5311

Merged

Conversation

tw15egan
Copy link
Collaborator

Closes #5229

Select now mimics Dropdown and TextInput, and has 3 sizes available.

Changelog

New

  • size prop to Select (accepts sm and xl, defaults to standard size)
  • Classes for the corresponding heights

Testing / Reviewing

Should ensure Select renders at 3 different heights based on the size prop

@tw15egan tw15egan requested a review from a team as a code owner February 10, 2020 19:24
@ghost ghost requested review from aledavila and emyarod February 10, 2020 19:24
@netlify
Copy link

netlify bot commented Feb 10, 2020

Deploy preview for carbon-elements ready!

Built with commit e8bee5d

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

@netlify
Copy link

netlify bot commented Feb 10, 2020

Deploy preview for carbon-components-react ready!

Built with commit e8bee5d

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

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 @tw15egan!

@joshblack
Copy link
Contributor

@tw15egan are we missing a step? Was surprised it went from sm -> lg -> xlg without a md bump 🤔 Code looks great otherwise! Just was curious about that bit

@tw15egan
Copy link
Collaborator Author

@tw15egan are we missing a step? Was surprised it went from sm -> lg -> xlg without a md bump 🤔 Code looks great otherwise! Just was curious about that bit

I agree, which is why when I made this PR (#5076) I changed the prop names, but it caused a mismatch with the existing dropdown props, which caused issues.

See convo here https://ibm-studios.slack.com/archives/GCQ5R263T/p1579819071014900
and here carbon-design-system/carbon-website#845 (comment)

This should be changed in v11, and it should be the default medium, with a small and large option.

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 pending visual review

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshblack
Copy link
Contributor

@tw15egan was the conflict with dropdown in a release yet? Or was it earlier work? If not in a release I bet we could update it before 10.10. Separately thanks for the links, reading up now 👀

@tw15egan
Copy link
Collaborator Author

Pretty sure Dropdown additions were released in early December, which is why we reverted my changes to be consistent with Dropdown.

@joshblack
Copy link
Contributor

joshblack commented Feb 11, 2020

@tw15egan ah got it, you're totally right. Would it make sense if we updated Dropdown to also accept the intended value and use that in docs?

Just was trying to understand the ideal here and if we can coordinate the same sizes cross components or not

@joshblack joshblack mentioned this pull request Feb 12, 2020
2 tasks
@tw15egan
Copy link
Collaborator Author

@joshblack do we want to merge this in? Or did we want to make the modifications to text input/dropdown to take in large and small?

@tw15egan tw15egan mentioned this pull request Feb 18, 2020
@joshblack
Copy link
Contributor

@tw15egan I think those modifications would definitely be worth it, what do you think? Also doesn't need to block this for sure, could always move over to a separate ticket and we can tackle it before releasing if we think it's worth it.

@tw15egan
Copy link
Collaborator Author

@joshblack I think they would be too, let's do that modification in another PR 👍

@joshblack
Copy link
Contributor

Sounds good! Do we want to use that one button issue or should I go make another one?

@tw15egan
Copy link
Collaborator Author

@joshblack we can use the button one 👍

@tw15egan tw15egan merged commit 6d23a70 into carbon-design-system:master Feb 20, 2020
This was referenced Feb 25, 2020
@tw15egan tw15egan deleted the select-height-variations branch April 28, 2021 18:15
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] Add size variants
6 participants