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

Reduce the padding on main wrapper on mobile #1003

Merged
merged 9 commits into from
Sep 10, 2024

Conversation

anandamaryon1
Copy link
Contributor

Description

Reduces the main wrapper's margin top and bottom on mobile. It currently only changes by 8px, this PR makes it change more between mobile and desktop, from: 40px to 48px, to: 24px to 48px.

Prompted by and related to spacing updates in: #1002

nhsuk-main-wrapper

Before After
NHSUK About Page NHSUK About Page (1)

nhsuk-main-wrapper--l

Before After
NHSUK About Page (2) NHSUK About Page SE (1)

nhsuk-main-wrapper--s

Before After
NHSUK About Page SE (2) NHSUK About Page SE

Checklist

frankieroberto
frankieroberto previously approved these changes Aug 29, 2024
Copy link
Contributor

@frankieroberto frankieroberto left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Must admit, I didn't even know about the nhsuk-main-wrapper--l and nhsuk-main-wrapper--s variants. 🤦

@edwardhorsford
Copy link
Contributor

I wonder if the change from padding to margin might cause any layout issues? Would be good to check layout in templates which don't have a header (eg things within the app).

frankieroberto
frankieroberto previously approved these changes Sep 9, 2024
@anandamaryon1
Copy link
Contributor Author

I wonder if the change from padding to margin might cause any layout issues? Would be good to check layout in templates which don't have a header (eg things within the app).

Human error 😮‍💨 … didn't mean to change them to margin. Changed back, good spot thanks.

edwardhorsford
edwardhorsford previously approved these changes Sep 10, 2024
@anandamaryon1 anandamaryon1 merged commit e8f9d03 into main Sep 10, 2024
2 checks passed
@anandamaryon1 anandamaryon1 deleted the reduce-main-wrapper-padding-on-mobile branch September 10, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants