Skip to content

Commit

Permalink
feat(frontend): updated markup for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jan 31, 2021
1 parent f9622b6 commit 22a7f5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/frontend/components/error-message/template.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- set classes = "error-message" + (" " + opts.classes if opts.classes) -%}
<dl class="{{ classes }}" id="{{ opts.id }}"
<span class="{{ classes }}" id="{{ opts.id }}"
{%- for attr, value in opts.attributes %} {{ attr }}="{{ value }}"{% endfor -%}>
<dt class="error-message__label visually-hidden">{{ opts.label | default("Error") }}:</dt>
<dd>{{ opts.text | safe }}</dd>
</dl>
<span class="visually-hidden">{{ opts.label | default("Error") }}:</span>
<span class="error-message__text">{{ opts.text | safe }}</span>
</span>

0 comments on commit 22a7f5d

Please sign in to comment.