Skip to content

Commit

Permalink
Fix Review app bodyClasses trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Nov 1, 2023
1 parent eb0b14b commit c7d8776
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions packages/govuk-frontend-review/src/views/all-components.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
{% from "govuk/components/back-link/macro.njk" import govukBackLink %}
{% from "macros/showExamples.njk" import showExamples %}

{% set bodyClasses %}
language-markup
{% endset %}
{% set bodyClasses = "language-markup" %}

{% block beforeContent %}
{{ govukBackLink({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{% extends "layouts/" + previewLayout | default('layout') + ".njk" %}

{% set bodyClasses %}
{{ bodyClasses }}
{% endset %}

{# Remove standard template banners/headers/frontmatter #}
{% block skipLink %}{% endblock %}
{% block bodyStart %} {% endblock %}
Expand Down
4 changes: 1 addition & 3 deletions packages/govuk-frontend-review/src/views/component.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

{% extends "layouts/full-width-landmarks.njk" %}

{% set bodyClasses %}
language-markup
{% endset %}
{% set bodyClasses = "language-markup" %}

{% set htmlMarkup %}
{% include componentName + "/" + componentName + ".njk" ignore missing %}
Expand Down

0 comments on commit c7d8776

Please sign in to comment.