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

[DO NOT MERGE] Stop using mobile_top_margin with heading component #3489

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Dec 20, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Change how we use the heading component margin options in consultations pages.

Why

We're removing this option from the heading component because there's some very specific behaviour on these pages and we should move away from corner cases like this to a spacing model that works across pages.

Relates to alphagov/govuk_publishing_components#4510

Visual changes

Some minor spacing changes, to be added.

Trello card: https://trello.com/c/l4VyD7Nm/395-retire-page-title-component

- previously using the responsive margin bottom mixin, but this doesn't provide enough spacing on consultation pages
- instead switch to using the component wrapper helper, which includes an option to set margin bottom
- set margin bottom to match existing (on desktop, better on mobile)
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3489 December 20, 2024 13:43 Inactive
@andysellick andysellick changed the title [DO NOT MERGE] Reconfigure heading margins [DO NOT MERGE] Stop using mobile_top_margin with heading component Dec 20, 2024
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3489 December 20, 2024 13:58 Inactive
- headings have this unusual behaviour where the mobile top margin is much larger
- this is slightly odd and inconsistent behaviour, so we're removing this option from the heading component and applying custom spacing in these pages instead using existing component options
- headings have this unusual behaviour where the mobile top margin is much larger
- this is slightly odd and inconsistent behaviour, so we're removing this option from the heading component and applying custom spacing in these pages instead using existing component options
- headings have this unusual behaviour where the mobile top margin is much larger
- this is slightly odd and inconsistent behaviour, so we're removing this option from the heading component and applying custom spacing in these pages instead using existing component options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants