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

Fix "Marketing & Merchandising" padding on store management panel #38088

Merged
merged 4 commits into from May 10, 2023

Conversation

chihsuan
Copy link
Member

@chihsuan chihsuan commented May 3, 2023

Submission Review Guidelines:

Changes proposed in this Pull Request:

Closes #35583.

This PR adds a 24px spacing between the Manage my store header and the Marketing & Merchandising heading

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Go to WooCommerce > Home
  2. Hide setup task list
  3. Confirm the heading "Marketing & Merchandising" has padding between the Manage my store header

Screenshot 2023-05-03 at 16 06 00

@chihsuan chihsuan marked this pull request as ready for review May 3, 2023 08:06
@chihsuan chihsuan self-assigned this May 3, 2023
@github-actions github-actions bot added focus: react admin [team:Ghidorah] plugin: woocommerce Issues related to the WooCommerce Core plugin. labels May 3, 2023
@chihsuan chihsuan requested review from a team, ilyasfoo and moon0326 May 3, 2023 08:06
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2023

Hi @ilyasfoo, @moon0326,

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
Copy link
Contributor

github-actions bot commented May 3, 2023

Test Results Summary

Commit SHA: e4af20d

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests26700202690m 48s
E2E Tests1880010019816m 58s

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

@ilyasfoo ilyasfoo left a comment

Choose a reason for hiding this comment

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

Minor comment on spacing standard

@@ -3,3 +3,7 @@
.woocommerce-store-management-links__card-body.is-size-custom {
padding: 24px 0 8px 0;
}

.woocommerce-store-management-links__card-body {
padding-top: 24px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix, @chihsuan! However, I'm seeing the 24px padding at the top is not symmetrical with the 16px (or $gap) that's used for the typical vertical spacing around widget children.

Suggested change
padding-top: 24px;
padding-top: $gap;

image

Copy link
Member Author

Choose a reason for hiding this comment

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

Good eye! @ilyasfoo What do you think if we use padding: $gap-large 0 $gap-smaller 0; (padding: 24px 0 8px 0;)?

It looks like it was supposed to be like that.

// We need to do this to allow item hover backgrounds to stretch the whole card body.
.woocommerce-store-management-links__card-body.is-size-custom {
padding: 24px 0 8px 0;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Just made the changes first in 30aab39!

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch, however, I'm seeing the padding that's added gives a "border-like" artefact at the bottom when hovering the last item:

image

image

Whereas, in inbox notes items, tasklist items do not have this.

But perhaps I may be overly complicating it. I don't know if we need to call our expert @verofasulo for opinion 🙏 😄

Choose a reason for hiding this comment

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

I'm seeing the padding that's added gives a "border-like" artefact at the bottom when hovering the last item

Good catch, @ilyasfoo! I agree that it would be better to remove the padding there to avoid that effect.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @verofasulo @ilyasfoo! Updated as suggested in e4af20d. 🙌

@chihsuan chihsuan requested a review from ilyasfoo May 9, 2023 03:36
Copy link
Contributor

@ilyasfoo ilyasfoo left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @chihsuan! LGTM! 🚢

@chihsuan chihsuan merged commit 687549d into trunk May 10, 2023
16 of 17 checks passed
@chihsuan chihsuan deleted the fix/manage-store-panel-padding branch May 10, 2023 05:02
@github-actions github-actions bot added this to the 7.8.0 milestone May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: woocommerce Issues related to the WooCommerce Core plugin.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Fix the padding on the Manage my store panel on the home screen
3 participants