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

Add context option to heading component #4510

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Dec 20, 2024

What

Adds a context option to the heading component, to mimic the behaviour of context on the page title component.

This also removes the 'with mobile top margin' option from the component, as we're trying to move away from margin top on components. Instead, this spacing will be applied to previous elements on a case by case basis, in further pull requests.

Why

We're removing the margin_top option from the title component (#4508) and there are some places where this is still needed. However if the heading component has context, those instances can be replaced with the heading component.

Eventually we're also working towards merging the title component into the heading component, and this is also a step in that direction.

Visual Changes

None, apart from the new options on the heading component.

Trello card: https://trello.com/c/l4VyD7Nm/395-retire-page-title-component

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