Skip to content

Commit

Permalink
fixup variable name in template
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed May 13, 2019
1 parent 4b45b9f commit 1ffeeff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/button/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% endif %}

{% if params.isStartButton %}
{% set iconMarkUp %}
{% set iconHtml %}
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" focusable="false">
<path d="M0 0h13l20 20-20 20H0l21-19z" fill="currentColor"></path>
</svg>
Expand All @@ -43,13 +43,13 @@
{%- if element == 'a' %}
<a href="{{ params.href if params.href else '#' }}" role="button" draggable="false" {{- commonAttributes | safe }}>
{{ params.html | safe if params.html else params.text }}
{{ iconMarkUp | safe }}
{{ iconHtml | safe }}
</a>

{%- elseif element == 'button' %}
<button {%- if params.value %} value="{{ params.value }}"{% endif %} {{- buttonAttributes | safe }} {{- commonAttributes | safe }}>
{{ params.html | safe if params.html else params.text }}
{{ iconMarkUp | safe }}
{{ iconHtml | safe }}
</button>

{%- elseif element == 'input' %}
Expand Down

0 comments on commit 1ffeeff

Please sign in to comment.