Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

All Products: make atomic blocks margin consistent to improve alignment #2565

Closed
Aljullu opened this issue May 26, 2020 · 11 comments
Closed
Labels
block: all products Issues related to the all products block. block-type: product elements Issues related to Product Element blocks. focus: global styles Issues that involve styles/css/layout structure. status: stale Stale issues and PRs have had no updates for 60 days.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented May 26, 2020

In the All Products block there are some alignment issues when products have different inner blocks. In the screenshot below, you can see the Sale badge has more top margin than the price, so the products look misaligned:

imatge

It's a bit complex because some of ours styles are overwritten by Storefront and Gutenberg styles.

I did a quick research and this is the inner blocks and the margins they have:

  • Product image
    • Bottom: 1.618em = 22.65px
  • Product title
    • Top: 12px (SF overwrites this to 0.5407911001em = 8.65px)
  • Sale badge
    • Top: 8px
    • Bottom: 8px (SF overwrites this to 1em = 12.25px)
  • Product price
    • Bottom: 12px (in 'legacy' product grid it's 1rem = 16px)
  • Rating
    • Bottom: 12px
  • Button
    • Bottom: 12px (GB overwrites this to 1.41575em = 19.8px)

In bold, the styles that end up being applied in a store with Storefront installed. Also notice the mix between px and em makes the styles not to play well with some themes.

@nerrad nerrad added block: all products Issues related to the all products block. 🔹block-type: atomic blocks labels Jun 7, 2020
@nerrad nerrad added the focus: global styles Issues that involve styles/css/layout structure. label Jun 20, 2020
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Remove the stale label or post a comment, otherwise it will be closed in 10 days.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Dec 12, 2020
@nerrad nerrad removed the status: stale Stale issues and PRs have had no updates for 60 days. label Dec 15, 2020
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Feb 15, 2021
@Aljullu Aljullu removed the status: stale Stale issues and PRs have had no updates for 60 days. label Feb 15, 2021
@mikejolley mikejolley added block-type: product elements Issues related to Product Element blocks. and removed 🔹 block-type: atomic blocks labels Apr 9, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Jun 10, 2021
@nerrad nerrad removed the status: stale Stale issues and PRs have had no updates for 60 days. label Jun 18, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Aug 18, 2021
@nerrad nerrad removed the status: stale Stale issues and PRs have had no updates for 60 days. label Aug 18, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Oct 19, 2021
@Aljullu Aljullu removed the status: stale Stale issues and PRs have had no updates for 60 days. label Oct 19, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Dec 19, 2021
@nerrad nerrad removed the status: stale Stale issues and PRs have had no updates for 60 days. label Dec 23, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Feb 22, 2022
@Aljullu Aljullu removed the status: stale Stale issues and PRs have had no updates for 60 days. label Feb 22, 2022
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Apr 29, 2022
@Aljullu Aljullu removed the status: stale Stale issues and PRs have had no updates for 60 days. label Apr 29, 2022
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Jun 29, 2022
@Aljullu Aljullu removed the status: stale Stale issues and PRs have had no updates for 60 days. label Jul 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2022

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Sep 4, 2022
@Aljullu
Copy link
Contributor Author

Aljullu commented Jan 26, 2023

I'm going to close this issue. We are revisiting the margins for the Products block (#7954), but decided not to modify them in the All Products block.

@Aljullu Aljullu closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: all products Issues related to the all products block. block-type: product elements Issues related to Product Element blocks. focus: global styles Issues that involve styles/css/layout structure. status: stale Stale issues and PRs have had no updates for 60 days.
Projects
None yet
Development

No branches or pull requests

3 participants