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

Use fallback font if not including NHS font face #816

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jacksonj04
Copy link

Description

There is a configuration option $nhsuk-include-font-face which controls if the NHS corporate font is included in the compiled CSS. In the current implementation, if this option is false then font-face is not set at all, which leads to unstyled text.

This change makes it so that if the fonts are not included, a font-face declaration is still made using only the fallback fonts (as set in $nhsuk-font-fallback).

Checklist

jacksonj04 and others added 2 commits May 10, 2022 11:40
There is a configuration option `$nhsuk-include-font-face` which
controls if the NHS corporate font is included in the compiled CSS. In
the current implementation, if this option is false then `font-face` is
not set at all, which leads to unstyled text.

This change makes it so that if the fonts are not included, a
`font-face` declaration is still made using only the fallback fonts (as
set in `$nhsuk-font-fallback`).
Use fallback font if not including NHS font face
@andymantell
Copy link
Contributor

andymantell commented May 10, 2022

Not passing judgement on this either negatively or positively, but just wanted to link to this pull request which has some background to why it is like it is right now, i.e. mimicing the way it works in govuk-frontend. And to note that whatever path is taken here needs to be compatible with the needs from this thread - where someone is self hosting the nhs fonts.

#732

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.

2 participants