Make padding-bottom consistent for pages with EmailSignup component #247
Labels
No Label
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: www/www-new#247
Loading…
Reference in New Issue
No description provided.
Delete Branch "jared-fix-padding-bottom-101"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #101.
Might it be worth looking into a uniform padding-bottom added to global styles?
edit: or margin-bottom, if that is what is preferred
Looks good to me! Just a couple of suggestions/notes:
My thought process was that padding is a part of an object, whereas margin is used to separate 2 different object. Since to me the space at the bottom felt like an integral part of
.page
, I used padding. For example, if we were to add a border to.page
(it would be very ugly if we did), then I think it makes sense that there is space between the border and content at the bottom.I could be way off the mark though, let me know what you guys think!
looks good to me! Just need to pull from main 👍
I think arguments can be made on both sides (margin vs padding).
The main technical difference is that margins are collapsible - https://medium.com/@joseph0crick/margin-collapse-in-css-what-why-and-how-328c10e37ca0
I prefer margin over padding for that reason, but I'll leave the decision up to you @j285he
The PR LGTM overall, so feel free to merge.
@ -1,5 +1,5 @@
.page {
margin: calc(50rem / 16) 0;
margin: calc(60rem / 16) 0;
This is changing the margins on the side as well, which make the page super narrow.
@ -52,2 +52,4 @@
@media only screen and (max-width: calc(768rem / 16)) {
.page {
margin: calc(30rem / 16);
Continuing from Adi's comment: this should be
margin: calc(30rem / 16) 0
so we don't change the side margins.