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

Change all title components to heading components #3647

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Conversation

matthillco
Copy link
Contributor

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

What

Replace title components with headings. This PR covers the following views:

Why

We are attempting to retire the page title component in favour of the heading component. Trello

Before and After views:

Changes are minor and acceptable according to our criteria.

@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3647 January 31, 2025 09:52 Inactive
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

Changes seem good.

Next time can you link to the URLs affected rather than the files as it would make reviewing the changes easier. Also if there are visual differences screenshots would be useful to check them.

@@ -7,7 +7,6 @@
heading_level: 1,
font_size: "xl",
margin_bottom: 4,
inverse: inverse,
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, just noticed this - what was this change for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't replicate a view where there is an inverse header, so I thought it was an error.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I'd be more comfortable with this change supported by some more investigation. Since this is unrelated I suggest not deleting this line as part of this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK I've reverted that and also the other two titles further down the page where I'd also removed the inverse option.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great, thanks. I've spotted an unrelated problem with this app but I'd like to get your changes out first, I know you've just finished for today so apologies am going to merge this PR (if I can get the tests to pass).

@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3647 January 31, 2025 11:45 Inactive
Note that indentation of the main content changes on the index but
this doesn't materially change anything.
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3647 January 31, 2025 13:33 Inactive
@andysellick andysellick merged commit 3ab80c0 into main Jan 31, 2025
12 checks passed
@andysellick andysellick deleted the titles-to-headings branch January 31, 2025 13:39
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