Add margin_bottom to heading_options #9863
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.
Follow these steps if you are doing a Rails upgrade.
What
This PR amends the
margin_bottom
option for the main heading to always include a bottom margin. Previously, this would be set tonil
iftitle_margin_bottom
wasn't present however this didn't remove the bottom margin - rather it fell back to the title component's default bottom margin of 50px. Since the heading component doesn't include a default bottom margin, switching to this component resulted in removing the spacing beneath the main heading altogether. This PR reinstates it.Why
To reinstate the original spacing.
Visual changes
Spacing below the main heading has been reinstated.