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

Remove use of shared helper for margin #3611

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

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Dec 17, 2024

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

What

  • removes the shared helper call to set margin, as this is now handled by the component wrapper helper, which all of these components already use
  • one of these didn't seem to be using the shared helper at all

Why

The component wrapper helper now handles margin bottom in the same way that the shared helper does, but automatically, so only a default needs to be set. In the case of these components their default behaviour is for no bottom margin, which is the default behaviour for the wrapper anyway, so doesn't need to be set.

Visual changes

None, hopefully.

Trello card: https://trello.com/c/Y0pDWbHw/390-move-some-shared-helper-options-into-component-wrapper?filter=member:andysellick2

@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3611 December 17, 2024 16:17 Inactive
- removes the shared helper call to set margin, as this is now handled by the component wrapper helper, which all of these components already use
- one of these didn't seem to be using the shared helper at all
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