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

Adjust spacing in/between elements on the Cart and Checkout block pages #44160

Merged
merged 21 commits into from Feb 16, 2024

Conversation

tarunvijwani
Copy link
Contributor

@tarunvijwani tarunvijwani commented Jan 29, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

Closes #42108.

With this PR, we're adjusting spacing in/between elements on the Cart and Checkout block pages as per the design,

How to test the changes in this Pull Request:

  1. Add a normal product to the site (don't add subscription product).
  2. Visit the Cart and Checkout pages
  3. Confirm both the Cart and Checkout pages have spacing as per the design attached below.
  4. Confirm separator in order summary is not visible.
    image
  5. Add subscription product to the site.
  6. Visit the cart page and confirm the subscription details are aligned with product name and product price.
  7. Confirm the borders are uniform in color.
    image
  8. Visit Checkout page and confirm the contact form is aligned with order summary.
image 9. Confirm the shipping are not tight have gaps as per the design: ![image](https://github.com/woocommerce/woocommerce/assets/11503784/85b6c2f9-1168-4bd5-b2ed-018c809a5ad1)

Design

Figma link: 2JyXNimI4oGeJZhgQNZE9V-fi-819_26489

image

image
image

image

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Adjust spacing in/between elements on the Cart and Checkout block pages.

Copy link
Contributor

github-actions bot commented Jan 29, 2024

Test Results Summary

Commit SHA: 5017116

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 36s
E2E Tests291004503366m 18s

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.

@tarunvijwani tarunvijwani changed the title Adjust spacing in/between elements on Cart and Checkout Adjust spacing in/between elements on the Cart and Checkout block pages Feb 1, 2024
@tarunvijwani tarunvijwani marked this pull request as ready for review February 1, 2024 09:05
@woocommercebot woocommercebot requested review from a team and senadir and removed request for a team February 1, 2024 09:05
Copy link
Contributor

github-actions bot commented Feb 1, 2024

Hi @wavvves,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Feb 2, 2024
@tarunvijwani tarunvijwani self-assigned this Feb 2, 2024
@tarunvijwani tarunvijwani added the team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues label Feb 2, 2024
@senadir
Copy link
Member

senadir commented Feb 5, 2024

While I appreciate the spacing on the sidebar

image

I find it to be inconsistent in the main Checkout form, possibly a bug for the email one (running 2024).
image

I also think the new spacing is too dense in some areas but too lose in others, in the order summary, the line hight + padding makes the lines too spread out while things are too dense on the main Checkout body.

image

@tarunvijwani tarunvijwani marked this pull request as draft February 6, 2024 20:13
@tarunvijwani
Copy link
Contributor Author

Thank you for the suggestions, @senadir. I'm moving the PR to draft to make the suggested changes in Slack: p1707223474247879-slack-C8X6Q7XQU

@tarunvijwani
Copy link
Contributor Author

@senadir @nikkivias I have updated the line height for the set description and fixed the margin-top of the email field. Here is how it looks now:
image

I feel it looks good now. I'd love to hear your thoughts about it.

@tarunvijwani tarunvijwani marked this pull request as ready for review February 7, 2024 21:11
@woocommercebot woocommercebot requested a review from a team February 7, 2024 21:11
@nikkivias
Copy link

nikkivias commented Feb 8, 2024

Hi team, there are some of the things I noticed. Regarding the item separators in the order summary, there should be a bigger gap after the border, but its not accounting for the item quantity so it looks tight right now. However, I am thinking we remove the borders all together for a cleaner look. Also if you notice they are shorter and not aligned with the other borders.

@tarunvijwani @senadir

CleanShot 2024-02-08 at 23 22 47@2x

CleanShot 2024-02-08 at 23 20 30@2x

CleanShot 2024-02-08 at 22 59 59@2x

CleanShot 2024-02-08 at 23 30 23@2x

CleanShot 2024-02-08 at 23 11 43@2x

@tarunvijwani
Copy link
Contributor Author

tarunvijwani commented Feb 9, 2024

@nikkivias Thank you for reviewing the changes. I'd appreciate some input for the following:

The below items are as per the design. I'd be happy to update it. Please let me know how much gap we should leave for them:

Cart Totals

image
Design Actual
image image

Order Summary Gap

image

Design Actual
image image

The images needs to be moved down:

Before After
image image

Product Separator

image

We discussed this earlier in Figma: 2JyXNimI4oGeJZhgQNZE9V-fi-819:26489#684299023 about keeping the separator. I won't mind removing it; please let me know.

image

Should we keep it at full width or remove it?

Site header

image

Please ignore it. This is the site header and should be controlled by the Merchant while designing their site. It will be the same throughout the site.

Payment option gap

image
Design Actual
image image

The problem is with the multiple packages option. It should have a 16px gap instead of 8 px. I will fix that in the next commit:

image

Sub text space for the payment method

image

Sure, I'll update it in the next commit.

Additional border

I will fix it in the next commit.
image

Line-height in cart line items

image

Changing the line height to these numbers will shrink the space between them. Are we sure we need to change the line height for them?

Screen.Recording.2024-02-10.at.12.50.24.AM.mov
Screen.Recording.2024-02-10.at.12.48.40.AM.mov

I'll wait for your reply before making further changes; please take your time and let me know.

Copy link
Member

@senadir senadir left a comment

Choose a reason for hiding this comment

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

Visually speaking, this is really consistent and nice!

One note is that the payment spacing is a bit off, even following the design spec. I raised that with Nikki and we can address in a follow up.

image

image

Copy link
Member

@nielslange nielslange left a comment

Choose a reason for hiding this comment

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

The design of the Cart block shows a spacing of 16px between the page title and the cart line items. On my end, I see a spacing of 19.2px:

Screenshot 2024-02-16 at 14 52 29

@nielslange nielslange self-requested a review February 16, 2024 13:54
Copy link
Member

@nielslange nielslange left a comment

Choose a reason for hiding this comment

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

The design of the Cart block shows a spacing of 24px between the cross-sells title and the cross-sells products. On my end, I see a spacing of 44.4px:

Screenshot 2024-02-16 at 14 57 10

@senadir
Copy link
Member

senadir commented Feb 16, 2024

@nielslange those seems to be coming from the theme and applied to the page layout, and not from the block? editing those directly would impact the theme control negatively.

@nielslange nielslange self-requested a review February 16, 2024 14:00
Copy link
Member

@nielslange nielslange left a comment

Choose a reason for hiding this comment

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

According to the design, the spaces between the cross-sells product metadata should be 16px. On my end, I see a spacing of 16.8px and the spacing between the star rating and the price seems to be only 14px.

Screenshot 2024-02-16 at 15 01 41 Screenshot 2024-02-16 at 15 01 53
Screenshot 2024-02-16 at 15 02 15 Screenshot 2024-02-16 at 15 04 01

@nielslange
Copy link
Member

@nielslange those seems to be coming from the theme and applied to the page layout, and not from the block? editing those directly would impact the theme control negatively.

If that's the case, then I'm unable to test step 3. of the testing instructions, which states:

  1. Confirm both the Cart and Checkout pages have spacing as per the design attached below.

On my end, I simply see different spaces than the ones mentioned in the design.

@tarunvijwani
Copy link
Contributor Author

Thank you so much for the feedback, @senadir and @nielslange. I'll take a look and get back to you on this. Ideally, we should not have these inconsistencies.

@tarunvijwani
Copy link
Contributor Author

@nielslange It was happening because I was using em conversion. I replaced it with normal px, and it should be fine now. I'd appreciate it if you could review the PR again.

@tarunvijwani
Copy link
Contributor Author

The design of the Cart block shows a spacing of 24px between the cross-sells title and the cross-sells products. On my end, I see a spacing of 44.4px:

Screenshot 2024-02-16 at 14 57 10

I agree with @senadir. Since this is outside the block, we should not manipulate the theme layout. It should be controlled by the merchant.

Screen.Recording.2024-02-16.at.8.13.50.PM.mov

@wavvves wavvves self-requested a review February 16, 2024 19:42
Copy link
Contributor

@wavvves wavvves left a comment

Choose a reason for hiding this comment

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

After testing this, while the figma changes look ok on desktop, on mobile I'm not seeing the changes described in figma, and actually it seems to be inheriting desktop changed props, making Cart and Checkout display even less information above fold 🫤

Figma Before After
Cart image image image
Checkout image image image

Copy link
Contributor

@wavvves wavvves left a comment

Choose a reason for hiding this comment

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

Approving this, thank you for the patience @tarunvijwani, mobile looks way better now :)

@tarunvijwani
Copy link
Contributor Author

Thank you for the suggestions and feedback, @wavvves! 🎉

@tarunvijwani tarunvijwani merged commit 4e6476a into trunk Feb 16, 2024
58 checks passed
@tarunvijwani tarunvijwani deleted the update/42108-adjust-cart-checkout-spacing branch February 16, 2024 21:50
@github-actions github-actions bot added this to the 8.7.0 milestone Feb 16, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Feb 16, 2024
@Stojdza Stojdza added needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spacing needs to be change in/between elements on Cart and Checkout
6 participants