-
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
feat(text-input): add height variations to text input #5076
feat(text-input): add height variations to text input #5076
Conversation
Deploy preview for the-carbon-components ready! Built with commit 673a8a7 https://deploy-preview-5076--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit 023b69c https://deploy-preview-5076--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.
LGTM 👍 - Thanks @tw15egan for your quick change!
Deploy preview for carbon-elements ready! Built with commit 673a8a7 |
Deploy preview for carbon-elements ready! Built with commit c1fe65a |
Deploy preview for the-carbon-components ready! Built with commit 85f1205 https://deploy-preview-5076--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react failed. Built with commit 85f1205 https://app.netlify.com/sites/carbon-components-react/deploys/5e20ea96a2c2ac0008052e94 |
Deploy preview for the-carbon-components ready! Built with commit c1fe65a https://deploy-preview-5076--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react failed. Built with commit 69f9508 https://app.netlify.com/sites/carbon-components-react/deploys/5e20eef85a8aca00094e0251 |
Deploy preview for carbon-components-react ready! Built with commit c1fe65a https://deploy-preview-5076--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, should these variants exist for the password input as well?
ae157f7
to
df69045
Compare
@emyarod added in support for the password fields as well |
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.
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.
@jeanservaas I can change these to be |
1007321
to
e4bfbb0
Compare
Closes #5071
Adds height variations to
TextInput
component.small
large
Changelog
New
size
prop onTextInput
, with a default of ``.#{$prefix}--text-input--large
and.#{$prefix}--text-input--small
classesTesting / Reviewing
Change the size of the
TextInput
via the knob in the storybook