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(text-input): add height variations to text input #5076

Merged

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Jan 16, 2020

Closes #5071

Adds height variations to TextInput component.

  • small
  • `` (default)
  • large

Changelog

New

  • New size prop on TextInput, with a default of ``
  • .#{$prefix}--text-input--large and .#{$prefix}--text-input--small classes
  • Size knob in storybook

Testing / Reviewing

Change the size of the TextInput via the knob in the storybook

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for the-carbon-components ready!

Built with commit 673a8a7

https://deploy-preview-5076--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-components-react ready!

Built with commit 023b69c

https://deploy-preview-5076--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 for your quick change!

@asudoh asudoh requested review from a team and jeanservaas and removed request for a team January 16, 2020 22:56
@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-elements ready!

Built with commit 673a8a7

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

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-elements ready!

Built with commit c1fe65a

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

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for the-carbon-components ready!

Built with commit 85f1205

https://deploy-preview-5076--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-components-react failed.

Built with commit 85f1205

https://app.netlify.com/sites/carbon-components-react/deploys/5e20ea96a2c2ac0008052e94

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for the-carbon-components ready!

Built with commit c1fe65a

https://deploy-preview-5076--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-components-react failed.

Built with commit 69f9508

https://app.netlify.com/sites/carbon-components-react/deploys/5e20eef85a8aca00094e0251

@netlify
Copy link

netlify bot commented Jan 17, 2020

Deploy preview for carbon-components-react ready!

Built with commit c1fe65a

https://deploy-preview-5076--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, should these variants exist for the password input as well?

@tw15egan
Copy link
Member Author

tw15egan commented Jan 17, 2020

@emyarod added in support for the password fields as well

Copy link
Contributor

@jeanservaas jeanservaas left a comment

Choose a reason for hiding this comment

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

Hey @asudoh this change looks good and I will approve.

but @laurenmrice and i were wondering what the effort level would be to change the names of these field height sizes... "Extra large" "Large" and "Small" does not really make sense in the scheme of our system. "Large" "Default" and "Small" or something like that would make more sense...

also we noticed that other components like Data table are using a different naming convention for field heights: "tall" "short" and "compact." It would be nice to streamline all of this stuff.

@tw15egan
Copy link
Member Author

tw15egan commented Jan 17, 2020

@jeanservaas I can change these to be small and large, with the default being default before we merge this in. The dropdown updates can be made in a separate PR

@asudoh asudoh merged commit 7011d0b into carbon-design-system:master Jan 21, 2020
@tw15egan tw15egan mentioned this pull request Feb 18, 2020
This was referenced Feb 25, 2020
@tw15egan tw15egan deleted the text-input-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.

[text input] add 48px and 32px size options
4 participants