Skip to content

Commit

Permalink
Merge pull request #20 from tim-s-ccs/make-updates-for-govuk-frontend…
Browse files Browse the repository at this point in the history
…-v5.4.1

Make updates for GOV.UK Frontend v5.4.1
  • Loading branch information
tim-s-ccs committed Jul 15, 2024
2 parents b6589f7 + b91246f commit d5bda1e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "daily"

- package-ecosystem: npm
directory: /
open-pull-requests-limit: 10

schedule:
interval: weekly
day: "sunday"
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja/compare/1.2.0...main)
## [Unreleased](https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja/compare/1.2.1...main)

## [1.2.1](https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja/releases/tag/1.2.1) - 15/07/2024

### Added

- [GOV.UK Frontend v5.4.1](https://github.com/alphagov/govuk-frontend/releases/tag/v5.4.1) support

## [1.2.0](https://github.com/tim-s-ccs/ccs-govuk-frontend-jinja/releases/tag/1.2.0) - 25/06/2024

Expand Down
2 changes: 1 addition & 1 deletion govuk_frontend_jinja/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2.0"
__version__ = "1.2.1"
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% macro govukBackLink(params) %}
{% from "govuk_frontend_jinja/macros/attributes.html" import govukAttributes -%}

<a href="{% if params.href %}{{ params.href }}{% else %}#{% endif %}" class="govuk-back-link {%- if params.classes %} {{ params.classes }}{% endif %}"
<a href="{{ params.href | default('#') }}" class="govuk-back-link {%- if params.classes %} {{ params.classes }}{% endif %}"
{{- govukAttributes(params.attributes) }}>
{{- params.html | safe if params.html else (params.text if params.text else "Back") -}}
{{- params.html | safe if params.html else (params.text | default("Back")) -}}
</a>
{% endmacro %}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% set classNames = classNames ~ " govuk-breadcrumbs--collapse-on-mobile" %}
{% endif -%}

<div class="{{ classNames }}" {{- govukAttributes(params.attributes) }}>
<nav class="{{ classNames }}" {{- govukAttributes(params.attributes) }} aria-label="{{ params.labelText | default("Breadcrumb") }}">
<ol class="govuk-breadcrumbs__list">
{% for item in params['items'] %}
{% if item.href %}
Expand All @@ -28,5 +28,5 @@
{% endif %}
{% endfor %}
</ol>
</div>
</nav>
{% endmacro %}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"author": "Matt Shaw",
"license": "MIT",
"devDependencies": {
"govuk-frontend": "^5.4.0"
"govuk-frontend": "^5.4.1"
}
}

0 comments on commit d5bda1e

Please sign in to comment.