Skip to content

Commit

Permalink
Fix attributes on radios (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored May 8, 2019
1 parent d7b6c19 commit 5ceec9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/radios/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
value="{{ radio.value }}"
name="{{ params.name }}"
{% if radio.checked %} checked{% endif %}
{% if params.attributes %}{% for attribute, value in (params.attributes.items() if params.attributes is mapping and params.attributes.items else params.attributes) %}{{ attribute }}{% if value %}="{{ value }}"{% endif %} {% endfor %}{% endif %}
{% if radio.attributes %}{% for attribute, value in (radio.attributes.items() if radio.attributes is mapping and radio.attributes.items else radio.attributes) %}{{ attribute }}{% if value %}="{{ value }}"{% endif %} {% endfor %}{% endif %}
>
<label class="radio__label {{ radio.label.classes }}" for="{{ radio.id }}">
{{ radio.label.text | safe }}
Expand Down

0 comments on commit 5ceec9a

Please sign in to comment.