The example at: https://design-system.service.gov.uk/components/header/ for the service name example will put the service name underneath the GOV.UK header instead of alongside it. This is because the header code relies on a closing and opening div being on the same line.
EXPECTED BEHAVIOUR:
The header should work correctly regardless of whether a div is on the same line or not.
ISSUE:
The example at:
https://design-system.service.gov.uk/components/header/
for the service name example will put the service name underneath the GOV.UK header instead of alongside it. This is because the header code relies on a closing and opening div being on the same line.EXPECTED BEHAVIOUR: The header should work correctly regardless of whether a div is on the same line or not.
REPRODUCE: Open your test page here in Chrome: https://design-system.service.gov.uk/components/header/with-service-name/index.html
Inspect element. To the left of: govuk-header__container govuk-width-container on the three dots right click and 'edit as HTML'
Go down to this line:
Move the second opening div <div class=... to a new line and click on the page. The service name moves to the next line.