-
Notifications
You must be signed in to change notification settings - Fork 17
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
Stop using mobile_top_margin with heading component #3489
Conversation
93dc46a
to
8949526
Compare
8949526
to
254ddba
Compare
- 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)
- 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
254ddba
to
c96d79f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
component_helper.set_lang("en") | ||
component_helper.add_data_attribute({ module: "ga4-link-tracker" }) | ||
component_helper.add_data_attribute({ ga4_track_links_only: "" }) | ||
component_helper.add_data_attribute({ ga4_link: { event_name: "navigation", type: "callout" } }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: is it worth combining the data attribute statements? No worries if you think it's more readable separated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair question, but yeah, I think it's probably more readable like this.
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.
Consultations pages headings have slightly smaller spacing below on desktop and above on mobile.
Call for evidence pages headings have a similar change.
Publications are similar, although I'm not sure of an example of a publication page.
Trello card: https://trello.com/c/l4VyD7Nm/395-retire-page-title-component