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

Replace title component with heading #4591

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Replace title component with heading #4591

merged 1 commit into from
Jan 27, 2025

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Jan 27, 2025

What

Replaces the H1s rendered in the component guide by the title component with H1s rendered using the heading component.

Probably no need for a changelog entry as this is an internal change to the component guide.

Why

These title components used the margin top option, which we're trying to remove (moving towards a world where components only have bottom margin).

Additionally we're trying to retire the title component, as the same functionality is provided by the heading component.

Visual Changes

None.

Trello card: https://trello.com/c/Y0pDWbHw/390-remove-margintop-option-from-shared-helper

- title component is redundant and is being replaced with the heading component
- visually identical
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4591 January 27, 2025 09:39 Inactive
@andysellick andysellick requested a review from AshGDS January 27, 2025 09:42
@andysellick andysellick merged commit 015a516 into main Jan 27, 2025
12 checks passed
@andysellick andysellick deleted the use-heading branch January 27, 2025 11:28
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