Remove shared helper from inset text component #4571
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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