Merge pull request #4236 from alphagov/fix-whitespace-copy

Remove whitespace from copy to clipboard component
This commit is contained in:
Chris Hill-Scott
2022-05-09 12:01:43 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
{% endif %}
<div data-module="copy-to-clipboard" data-value="{{ value }}" data-thing="{{ thing }}" data-name="{{ name }}">
<span class="copy-to-clipboard__value">
{% if name|lower != thing|lower %}<span class="govuk-visually-hidden">{{ thing }}: </span>{% endif %}{{ value }}
{%- if name|lower != thing|lower %}<span class="govuk-visually-hidden">{{ thing }}: </span>{% endif %}{{ value -}}
</span>
<span class="copy-to-clipboard__notice" aria-live="assertive"></span>
</div>