Skip to content

Commit

Permalink
Merge pull request #2093 from frankieroberto/minor-fix-breadcrumbs-cl…
Browse files Browse the repository at this point in the history
…asses

Only output space after breadcrumbs class if there's an additional class
  • Loading branch information
Vanita Barrett authored Jan 29, 2021
2 parents ad1b89c + 4434857 commit d05d418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/govuk/components/breadcrumbs/template.njk
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down

0 comments on commit d05d418

Please sign in to comment.