+ {% if errors %}
+
+ {{ errors }}
+
+ {% endif %}
{% if prefix %}
{{ prefix }}
{% endif %}
diff --git a/core/modules/system/templates/form-element.html.twig b/core/modules/system/templates/form-element.html.twig
index f9148c8..501368b 100644
--- a/core/modules/system/templates/form-element.html.twig
+++ b/core/modules/system/templates/form-element.html.twig
@@ -63,11 +63,6 @@
]
%}
- {% if errors %}
-
- {{ errors }}
-
- {% endif %}
{% if label_display in ['before', 'invisible'] %}
{{ label }}
{% endif %}
@@ -86,6 +81,11 @@
{% if label_display == 'after' %}
{{ label }}
{% endif %}
+ {% if errors %}
+
+ {{ errors }}
+
+ {% endif %}
{% if description_display in ['after', 'invisible'] and description.content %}
{{ description.content }}