Skip to content

Conversation

@mdperez86
Copy link
Contributor

@mdperez86 mdperez86 commented Nov 24, 2022

All Submissions:

Changes proposed in this Pull Request:

Closes #35567
Closes #35566

  • This PR is a very minor change/addition and does not require testing instructions (if checked you can ignore/remove the next section).

How to test the changes in this Pull Request:

  1. Go to Products -> Add New (MVP) page
  2. All form field controls should have the same height (36px)

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you created a changelog file for each project being changed, ie pnpm --filter=<project> changelog add?

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

@mdperez86 mdperez86 self-assigned this Nov 24, 2022
@github-actions github-actions bot added the package: @woocommerce/components issues related to @woocommerce/components label Nov 24, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2022

Test Results Summary

Commit SHA: a77cd3c

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202611m 9s
E2E Tests186006019214m 11s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

Copy link
Contributor

@louwie17 louwie17 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 This tested well! I did leave one small comment, but the changes still looked good!

flex-wrap: wrap;
align-items: center;
padding: $gap-smallest 36px $gap-smallest $gap-smaller;
padding: 2px 36px 2px $gap-smaller;
Copy link
Contributor

Choose a reason for hiding this comment

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

Was using 2px still necessary versus 4px - $gap-smallest after adding the min-height: 36px?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes because min-height doesn't prevent the input field growing in height if its content is greater than 36px. The [selected items height] + (2 * $gap-smallest) is greater than 36px.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, thanks for the clarification :)

@mdperez86 mdperez86 merged commit 6b30564 into trunk Nov 25, 2022
@mdperez86 mdperez86 deleted the enhancement/35567 branch November 25, 2022 14:58
@github-actions github-actions bot added this to the 7.3.0 milestone Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: @woocommerce/components issues related to @woocommerce/components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Align the field height across the whole form [Enhancement]: Fix the field height in the Attributes modal

3 participants