-
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 inline option for TextInput (#5915) #6252
feat(text-input): add inline option for TextInput (#5915) #6252
Conversation
Deploy preview for carbon-elements ready! Built with commit cb943e5 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit cb943e5 https://deploy-preview-6252--carbon-components-react.netlify.app |
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.
just a heads up, snapshots need to be updated to pass CI
yarn test -u
Thanks for the heads up @emyarod 🙌 |
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 @lucasmccomb , thanks for taking the time to work on this !
Instead of doing percentage based spacing, we should follow this specs spacing for these scenarios as a default:
Thanks for the feedback @laurenmrice! Do you know if the |
Yes it would apply to the label too 👍🏻 @lucasmccomb |
Requested changes have been made @laurenmrice — ready for re-review. |
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.
Looking great! Just one more thing, we need to adjust the label type token and bring it down so it is aligned with the text in the input (there might not always be helper text since it is optional, so we want to always align the label). And also make sure the spacing is 2px between the label and helper text .
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.
@laurenmrice Just some minor content things on the images...
That's it! Thank you. |
@laurenmrice addressed the size variant alignment issues 👍 |
@lucasmccomb looks good to me from a design perspective! we just need to update the story content with Jans fixes above ^ |
Changes TextInput react component to allow for inline variant and adds required styles. Updates TextInput Storybook page to include inline variant in Knobs tab.
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 for the contribution! 👍 ✅
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 awesome! thanks so much for doing this 🙌🏻
Thanks all! |
Closes #5915
Changes TextInput react component to allow for inline variant
and adds required styles. Updates TextInput Storybook page
to include inline variant in Knobs tab.
Changelog
Changed
Testing / Reviewing
storybook
locallyInline variant (inline)
Show form validation UI (invalid)
to see invalid state of input