From b51c93e68bdae937d415c4e245abcfd03a1c3626 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Wed, 1 Nov 2023 16:06:44 +0000 Subject: [PATCH] Fix Review app `bodyClasses` trailing spaces --- .../govuk-frontend-review/src/views/component-preview.njk | 4 ---- packages/govuk-frontend-review/src/views/component.njk | 4 +--- packages/govuk-frontend-review/src/views/components.njk | 4 +--- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/govuk-frontend-review/src/views/component-preview.njk b/packages/govuk-frontend-review/src/views/component-preview.njk index 36ec621a39..4be66939d0 100644 --- a/packages/govuk-frontend-review/src/views/component-preview.njk +++ b/packages/govuk-frontend-review/src/views/component-preview.njk @@ -4,10 +4,6 @@ {% block pageTitle %}{{ templateTitle }} - GOV.UK Frontend{% endblock %} -{% set bodyClasses %} - {{ bodyClasses }} -{% endset %} - {# Remove standard template banners/headers/frontmatter #} {% block skipLink %}{% endblock %} {% block bodyStart %} {% endblock %} diff --git a/packages/govuk-frontend-review/src/views/component.njk b/packages/govuk-frontend-review/src/views/component.njk index a853ab803c..a9aea3017b 100644 --- a/packages/govuk-frontend-review/src/views/component.njk +++ b/packages/govuk-frontend-review/src/views/component.njk @@ -5,9 +5,7 @@ {% block pageTitle %}{{ componentName | unslugify }} - GOV.UK Frontend{% endblock %} -{% set bodyClasses %} - language-markup -{% endset %} +{% set bodyClasses = "language-markup" %} {% set htmlMarkup %} {% include componentName + "/" + componentName + ".njk" ignore missing %} diff --git a/packages/govuk-frontend-review/src/views/components.njk b/packages/govuk-frontend-review/src/views/components.njk index ea1c6f906c..eabcb04d29 100644 --- a/packages/govuk-frontend-review/src/views/components.njk +++ b/packages/govuk-frontend-review/src/views/components.njk @@ -5,9 +5,7 @@ {% block pageTitle %}All components - GOV.UK Frontend{% endblock %} -{% set bodyClasses %} - language-markup -{% endset %} +{% set bodyClasses = "language-markup" %} {% block beforeContent %} {{ govukBreadcrumbs({