From a4db64363bb5e702794614b666d412c8b34ff2a1 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Mon, 11 Jan 2021 11:57:44 +0000 Subject: [PATCH 1/2] Only output space if there is an additional custom class --- src/govuk/components/breadcrumbs/template.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/govuk/components/breadcrumbs/template.njk b/src/govuk/components/breadcrumbs/template.njk index c004e65878..13c8219165 100644 --- a/src/govuk/components/breadcrumbs/template.njk +++ b/src/govuk/components/breadcrumbs/template.njk @@ -1,8 +1,8 @@ {# Set classes for this component #} -{%- set classNames = "govuk-breadcrumbs " -%} +{%- set classNames = "govuk-breadcrumbs" -%} {% if params.classes %} - {% set classNames = classNames + params.classes %} + {% set classNames = classNames + " " + params.classes %} {% endif -%} {% if params.collapseOnMobile %} From 4434857de33ae64235f7b58f935a2af754d3bc7f Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Wed, 13 Jan 2021 14:19:03 +0000 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 908ea44d42..de70e86956 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ We’ve made fixes to GOV.UK Frontend in the following pull requests: - [#2080: Fix JavaScript error when character count ID starts with a number](https://github.com/alphagov/govuk-frontend/pull/2080) - thanks to [@josef-vlach](https://github.com/josef-vlach) for reporting this issue. - [#2092: Use tabular numbers for character count message](https://github.com/alphagov/govuk-frontend/pull/2092) - [#2045: Stop same-site cookies from being wiped when printing in Internet Explorer 11](https://github.com/alphagov/govuk-frontend/pull/2045) – thanks to [@gunjam](https://github.com/gunjam) for contributing this +- [#2093: Only output space after breadcrumbs class if there’s an additional class](https://github.com/alphagov/govuk-frontend/pull/2093) – thanks to [@frankieroberto](https://github.com/frankieroberto) for contributing this. ## 3.10.2 (Patch release)