govuk-frontend
govuk-frontend copied to clipboard
Make it possible to override or remove the Crown logotype from the header
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
Making the change itself is easy. Understanding how we want teams to use the header and in which circumstances is more complex.
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 yes you're correct, for now you can't do that with the Nunjucks macro and will need to use HTML directly instead.