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

TextField/TextAreafield - width and height style props #1486

Merged
merged 3 commits into from
Mar 8, 2022

Conversation

reesscot
Copy link
Contributor

@reesscot reesscot commented Mar 7, 2022

Description of changes

This PR moves the width and height style props to the parent container to be consistent with the SelectField styling. This fixes an issue where the TextField height prop is applied to the input field, whereas the SelectField height prop is applied to the parent Flex container.
Screen Shot 2022-03-07 at 3 49 09 PM

Description of how you validated changes

  • Ran unit tests
  • Manually tested setting height and width on SelectField and TextField on same line:
    Screen Shot 2022-03-07 at 4 01 36 PM

Checklist

  • PR description included
  • yarn test passes
  • Tests are updated
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2022

🦋 Changeset detected

Latest commit: 69ee7db

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@aws-amplify/ui-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@joebuono joebuono left a comment

Choose a reason for hiding this comment

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

LGTM

@reesscot reesscot temporarily deployed to ci March 7, 2022 23:51 Inactive
@reesscot reesscot temporarily deployed to ci March 7, 2022 23:51 Inactive
@reesscot reesscot temporarily deployed to ci March 7, 2022 23:51 Inactive
@reesscot reesscot temporarily deployed to ci March 7, 2022 23:51 Inactive
@reesscot reesscot merged commit 9ecb14e into main Mar 8, 2022
@reesscot reesscot deleted the textfield-width-height branch March 8, 2022 00:18
@github-actions github-actions bot mentioned this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants