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

Reconfigure HTML publication titles #3534

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Reconfigure HTML publication titles #3534

merged 2 commits into from
Jan 28, 2025

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Jan 24, 2025

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

What

Reconfigure the use of the inverse header on HTML publication pages e.g. https://www.gov.uk/government/publications/benefit-and-pension-rates-2025-to-2026/benefit-and-pension-rates-2025-to-2026, specifically:

  • change inverse header options for padding
  • use new subtext option and remove local custom styles
  • replace title component with heading

There's a failing test in this PR but testing locally suggests that it'll be fixed with a new version of the components gem containing the associated change.

Why

The options in the inverse header component have been changed, see alphagov/govuk_publishing_components#4590

Also we're trying to get rid of the title component, to be replaced by the heading component.

Note that this change will not be merged until a new version of the components gem including this change is included here.

Visual changes

No visual changes on desktop, but the mobile version is a little tighter as a result, but I think this is fine.

Before After
Screenshot 2025-01-24 at 14 40 11 Screenshot 2025-01-24 at 14 40 19

Trello card: https://trello.com/c/hRL2Nmyp/450-improve-inverse-header-component-padding

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3534 January 24, 2025 14:45 Inactive
@andysellick andysellick requested a review from AshGDS January 27, 2025 11:55
- adjust options on inverse header following change, setting padding and use subtext in place of hard coded para and application level styles
- replace title component with heading component
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3534 January 28, 2025 11:19 Inactive
@andysellick andysellick changed the title [DO NOT MERGE] Reconfigure HTML publication titles Reconfigure HTML publication titles Jan 28, 2025
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3534 January 28, 2025 11:20 Inactive
@andysellick andysellick merged commit 2af4cdc into main Jan 28, 2025
11 checks passed
@andysellick andysellick deleted the inverse-header branch January 28, 2025 11:51
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.

3 participants