-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): updated markup for error message
- Loading branch information
1 parent
f9622b6
commit 22a7f5d
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |