Make heading sizes match govuk-frontend #4620
Open
+4
−10
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
First, change the default font size of the heading component.
govuk-frontend
heading sizes: XL, L, M and Sgovuk-heading-m
)Secondly, change the size of H2 elements in govspeak to also be 24px, so that all H2s are consistently sized.
Why
Fixes #1995 and #1750
This issue is marked as a breaking change, but I don't think it will actually cause any errors in our code, only that a fair amount of headings will suddenly appear slightly smaller.
Example pages where there are default (27px) size heading components:
Visual Changes
Heading component. Note that the 'no settings' text on the right is now 3px smaller.
Govspeak headings.