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 shared helper from inset text component #4571

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

andysellick
Copy link
Contributor

What

Remove the shared helper from the inset text component. Specifically, this removes the margin_top option from the component.

I've checked the 14 applications this component is used in and as far as I can tell none of them were using the margin_top option, so this seems safe to remove.

Why

We're trying to move some options out of the shared helper and into the component wrapper helper, as well as doing some cleanup, specifically to standardise our components to only use margin bottom. Removing this option from this component gets us one step closer to that goal.

Visual Changes

Inset text had a default top margin of Design System spacing 6 applied through the shared helper but also has the same top margin from the Design System component styles, so removing this makes no visual difference.

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

@andysellick andysellick requested a review from AshGDS January 20, 2025 10:57
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4571 January 20, 2025 10:57 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4571 January 20, 2025 10:58 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4571 January 20, 2025 11:14 Inactive
@andysellick andysellick merged commit 3b8d4ba into main Jan 20, 2025
12 checks passed
@andysellick andysellick deleted the inset-text-sh-remove branch January 20, 2025 13:12
unoduetre added a commit that referenced this pull request Jan 22, 2025
* Remove margin top from search component ([PR #4581](#4581))
* **BREAKING** Add component wrapper helper to textarea ([PR #4574](#4574))
* Remove margin top from print link ([PR #4577](#4577))
* **BREAKING** Use component wrapper on print link component  ([PR #4576](#4576))
* Refactor single page notification component ([PR #4501](#4501))
* Remove shared helper from button component ([PR #4569](#4569))
* Remove shared helper from inset text component ([PR #4571](#4571))
* Use component wrapper on contextual footer ([PR #4562](#4562))
* Update Govspeak "Warning Text" component styles ([PR #4487](#4487))
* Make "Add another" component styles more specific ([PR #4579](#4579))
* Translate "and" connective in metadata component to Chinese, Russian and Arabic ([PR #4580](#4580))
@unoduetre unoduetre mentioned this pull request Jan 22, 2025
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