tech-docs-gem icon indicating copy to clipboard operation
tech-docs-gem copied to clipboard

It should be harder to 'accidentally' use the GOV.UK Logo and NT Font

Open 36degrees opened this issue 8 years ago • 2 comments

The GOV.UK Logo and the New Transport font should only be included when the documentation is going be hosted on a gov.uk domain.

There's likely to be other organisations within government who might wish to use this template. With that in mind, we should either:

  • have a 'switch' to toggle the font (or change the logo toggle to do both) and a clear comment as to the conditions in which it can be used
  • or include the relevant styles / the font css / the logo on first run of middleman init based on the interactive prompt (e.g. "Will you be hosting this documentation on a GOV.UK domain?").

36degrees avatar Dec 12 '16 13:12 36degrees

Aren't most of the users of this template in violation of that rule already?

I tried to override the font in my project but had to redefine $helvetica-regular when calling before govuk_tech_docs is imported. I don't think there is any other way to do it?

I tried to think how this could be made configurable. It seems to be quite tricky. The only solution I could think of so far is to create two more stylesheets (screen-helvetica.css.scss and screen-helvetica-old-ie.css.scss), add such an override in there, and then e.g. call screen-helvetica when the config is set and screen when it isn't set.

But it's annoying that that would still load the font (which is then not used). Could @import "utilities/fonts" be removed from the gem's _core.scss and be conditionally added into screen.css.scss etc?

selfthinker avatar Apr 30 '18 13:04 selfthinker

We just made the same mistake spinning up https://gds-tech-learning-pathway.cloudapps.digital/

It would be helpful if https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/#show-govuk-logo toggled the font as well.

MatMoore avatar Jul 09 '18 13:07 MatMoore