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

Merged
merged 1 commit into from
Jan 6, 2025

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
@andysellick andysellick force-pushed the remove-shared-helper-margin branch from fa2a8ae to 8900957 Compare December 17, 2024 16:19
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3611 December 17, 2024 16:20 Inactive
@andysellick andysellick marked this pull request as ready for review December 17, 2024 16:24
@andysellick andysellick requested a review from AshGDS January 6, 2025 14:10
@andysellick andysellick merged commit bd83f70 into main Jan 6, 2025
12 checks passed
@andysellick andysellick deleted the remove-shared-helper-margin branch January 6, 2025 15:06
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