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 #2519

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Replace title component with heading #2519

merged 1 commit into from
Jan 28, 2025

Conversation

andysellick
Copy link
Contributor

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

What

Replace the title component with the heading component.

  • should still be a h1 and visually identical
  • heading has no margin top, so matches the previous margin_top: 0 option on title

Confession: I've not actually run this locally to check it visually, but I've done this in a lot of applications now and I'm reasonably confident it will work.

Why

The title component is being decommissioned and we've already removed the margin_top option from it as part of some other work. This means that with the latest changes a big space will suddenly appear above it. But if we switch it to the heading component, it looks exactly the same and won't have this problem.

Visual changes

None.

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

- should still be a h1 and visually identical
- heading has no margin top, so matches the previous margin_top: 0 option on title
- title component is being retired and margin_top option has already been removed
Copy link

@AshGDS AshGDS left a comment

Choose a reason for hiding this comment

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

LGTM

@andysellick andysellick merged commit a894131 into main Jan 28, 2025
12 checks passed
@andysellick andysellick deleted the use-heading branch January 28, 2025 13: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.

2 participants