Skip to content

Commit 19fb1db

Browse files
committed
Spike increase spacing in logo to 2.5 dots
1 parent ad4060c commit 19fb1db

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/govuk-frontend/src/govuk/macros/logo.jsdom.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ describe('logo.njk', () => {
186186
})
187187

188188
it('forces use of the Tudor Crown if `rebrand` is true', () => {
189-
expect($svg).toHaveAttribute('viewBox', '0 0 159 30')
189+
expect($svg).toHaveAttribute('viewBox', '0 0 162 30')
190190
})
191191
})
192192
})

packages/govuk-frontend/src/govuk/macros/logo.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ releases of Frontend. #}
1616
{#- Calculate how wide the logo needs to be for the given parameters. #}
1717
{%- set svgWidth = 32 if useTudorCrown else 36 %}
1818
{%- set svgWidth = svgWidth + 116 if (useLogotype and not rebrand) else svgWidth %}
19-
{%- set svgWidth = svgWidth + 127 if (useLogotype and rebrand) else svgWidth %}
19+
{%- set svgWidth = svgWidth + 130 if (useLogotype and rebrand) else svgWidth %}
2020

2121
{#- Charles III's Tudor Crown icon has been the default since February 2024. #}
2222
{%- set _tudorCrown %}
@@ -50,8 +50,8 @@ releases of Frontend. #}
5050
use alongide the Tudor Crown, so don't bother with offsetting for the
5151
St. Edward's Crown. #}
5252
{%- set _dotLogotype %}
53-
<circle class="govuk-logo-dot" cx="109.81" cy="17.83" r="3.7"></circle>
54-
<path d="m43.61,17.93c0,.9.1,1.8.3,2.7s.6,1.6,1.1,2.3c.5.7,1.1,1.2,1.8,1.6s1.6.6,2.6.6,1.8-.2,2.4-.5c.7-.3,1.2-.7,1.6-1.2.4-.5.7-1,.8-1.5s.2-1,.2-1.5v-.2h-5.5v-3.3h9.8v12h-3.8v-2.7c-.3.4-.6.8-1,1.2-.4.4-.9.6-1.4.9-.5.2-1.1.4-1.7.6s-1.2.2-1.9.2c-1.6,0-3-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