govuk-frontend icon indicating copy to clipboard operation
govuk-frontend copied to clipboard

Make it possible to override or remove the Crown logotype from the header

Open 36degrees opened this issue 5 years ago • 6 comments

As per https://github.com/alphagov/govuk-design-system-backlog/issues/97#issuecomment-552755688:

Would it be possible in a future update the ability to change the SVG of the crown? At CH we don't use the crown for our services and there is no simple way to swap it out using Nunjucks

36degrees avatar Nov 12 '19 11:11 36degrees

Making the change itself is easy. Understanding how we want teams to use the header and in which circumstances is more complex.

kellylee-gds avatar Nov 13 '19 14:11 kellylee-gds

As a local authority, consuming the npm module, we're at this point (needing to remove / replace icons and fonts) before we can start testing our first service internally. Looking at macro-options.json for the header component I don't immediately spot an option that would let us change the embedded govuk-header__logotype-crown svg via a param.

Is there something I'm missing or are we best forking the header component and making the changes we need in our own project?

DevRCRun avatar Feb 19 '20 15:02 DevRCRun

@DevRCRun yes you're correct, for now you can't do that with the Nunjucks macro and will need to use HTML directly instead.

NickColley avatar Feb 19 '20 15:02 NickColley