Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Fix: Tweaks layout section spacings #469

Merged
merged 2 commits into from Apr 8, 2022

Conversation

eduardoformiga
Copy link
Member

@eduardoformiga eduardoformiga commented Apr 8, 2022

What's the purpose of this pull request?

This PR fixes the spaces (padding/margin) on elements that use the layout__section class.

How does it work?

We changed the spacings from margin to padding on #464 due to a problem with the box-shadow on the product-card. At first glance, it was good, but it causes a regression with PDP due to margin collapse. So we just change the style from padding-top to margin-top again and it works as expected.

Before After
Screen Shot 2022-04-08 at 12 21 11 Screen Shot 2022-04-08 at 12 19 03

How to test it?

The elements with the layout__section class should look like the previews before the #464.

References

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing

Checklist

  • CHANGELOG entry added

@vtex-sites
Copy link

vtex-sites bot commented Apr 8, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-469--base.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit c6eca8a

@eduardoformiga eduardoformiga marked this pull request as ready for review April 8, 2022 15:20
@gatsby-cloud
Copy link

gatsby-cloud bot commented Apr 8, 2022

Gatsby Cloud Build Report

basestore

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 8m

Performance

Lighthouse report

Metric Score
Performance 💚 98
Accessibility 💚 100
Best Practices 💚 93
SEO 💚 93

🔗 View full report

@eduardoformiga eduardoformiga merged commit c6eca8a into master Apr 8, 2022
@eduardoformiga eduardoformiga deleted the fix/layout-section-spacing branch April 8, 2022 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants