Adjust tooltips for accessibility

This commit is contained in:
luis cielak
2018-08-13 14:13:47 -04:00
parent 8f50fd2651
commit 88092a7892
6 changed files with 27 additions and 23 deletions

View File

@@ -4,7 +4,7 @@
{% macro TextInput(field, tooltip='', placeholder='') -%}
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
<label for={{field.name}}>
<div>{{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}</div>
<div class="usa-input__title">{{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}</div>
{% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span>