Skip to content

Commit

Permalink
Update examples to remove text for back-link
Browse files Browse the repository at this point in the history
Now that there is a default text of 'Back' there is no need for the param
This removes the text param from the examples
  • Loading branch information
web-bert committed Jun 15, 2018
1 parent 0adfb50 commit 529fc82
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 24 deletions.
3 changes: 1 addition & 2 deletions app/views/examples/all-components/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
{% block beforeContent %}
{% from "back-link/macro.njk" import govukBackLink %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/error-messages/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/error-summary-with-messages/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/form-alignment/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/form-elements/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/grid/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/labels-legends-and-headings/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/links/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/template-block-areas/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@
{% from 'back-link/macro.njk' import govukBackLink %}

{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
</div>
{%- endblock %}
Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/template-custom/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@
html: 'C\'est un nouveau service - vos <a class="govuk-link" href="#">commentaires</a> nous aideront à l\'améliorer.'
}) }}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
<!-- endblock:beforeContent -->
{% endblock %}
Expand Down
3 changes: 1 addition & 2 deletions app/views/examples/typography/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

{% block beforeContent %}
{{ govukBackLink({
"href": "/",
"text": "Back"
"href": "/"
}) }}
{% endblock %}

Expand Down

0 comments on commit 529fc82

Please sign in to comment.