-
Notifications
You must be signed in to change notification settings - Fork 333
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 legacy and tabular fonts support #3574
Conversation
@@ -54,7 +54,7 @@ describe('@mixin govuk-typography-common', () => { | |||
@include govuk-typography-common; | |||
} | |||
:root { | |||
@include govuk-typography-common($font-family: $govuk-font-family-tabular); | |||
@include govuk-typography-common($font-family: Helvetica); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels odd to have Helvetica
here without a matching check for the output?
I appreciate we didn't before this edit, but we did (further down) in the tabular test
await expect(results).resolves.toMatchObject({
css: expect.stringContaining('font-family: Helvetica')
})
await expect(results).resolves.toMatchObject({
css: expect.stringContaining('font-family: "GDS Transport"')
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks brilliant
(I'm just going to rebase this btw, will let you know when it's done)
78f4120
to
9862a1e
Compare
Additionally update tests that used $govuk-font-family-tabular as example data to use Helvetica instead.
429e562
to
dc875b7
Compare
Remove legacy and tabular fonts support
Removes
$govuk-use-legacy-font
and$govuk-font-family-tabular
settings.Resolves #2791.
Changes
$govuk-use-legacy-font
being true.$govuk-font-family-tabular
being true fromgovuk-font
mixin.$govuk-font-family-tabular
.$govuk-use-legacy-font
,$govuk-font-family-tabular
,$govuk-font-family-nta
and$govuk-font-family-nta-tabular
settings.$govuk-font-family
setting to always use GDS Transport by default.$govuk-font-family-tabular
as dummy data (usually as a shorthand for a non-GDS Transport font) to use Helvetica instead.