Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Our existing vertical rhythm implementation (taken from Harry) has caused more headaches than what it's worth. Instead I've implemented a solution that applies to
margin-top
but not the first-child. This is a lot less aggressive and less likely in need ofmargin: 0
overrides for the odd use-case.Further reading: https://matthewjamestaylor.com/css-margin-top-vs-bottom
Note: This does unfortunately have a side effect of raising Emotion console errors of:
As we roll-up our own SSR in the cashier we won't need to worry about this so much, so we can safely add the ignore label. This is currently an open issue with Emotion: emotion-js/emotion#1178.
Motivation and Context
Vertical Rhythm's important and worth setting globally (see the updated docs)
How Has This Been Tested?
All tests have been updated to reflect the new changes
Screenshots
Types of changes
Checklist