Skip to content

Commit

Permalink
Set charcount element to a span (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored Jun 14, 2019
1 parent 5356937 commit 61ebb92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/textarea/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
{% 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 %}
>{{ params.value }}</textarea>
{% if params.maxlength %}
<div
<span
id="{{ params.id }}-lim-remaining"
class="input__limit u-mt-xs u-fs-s--b u-d-no"
data-charcount-singular="{{ params.charCountSingular }}"
data-charcount-plural="{{ params.charCountPlural }}">
</div>
</span>
{% endif %}
{% endcall %}
{% endmacro %}

0 comments on commit 61ebb92

Please sign in to comment.