diff --git a/core/modules/system/templates/field-multiple-value-form.html.twig b/core/modules/system/templates/field-multiple-value-form.html.twig index 348621c..0ab08e9 100644 --- a/core/modules/system/templates/field-multiple-value-form.html.twig +++ b/core/modules/system/templates/field-multiple-value-form.html.twig @@ -20,13 +20,13 @@ */ #} {% if multiple %} -
+
{{ table }} {% if description %} -
{{ description }}
+
{{ description }}
{% endif %} {% if button %} -
{{ button }}
+
{{ button }}
{% endif %}
{% else %} diff --git a/core/modules/system/templates/fieldset.html.twig b/core/modules/system/templates/fieldset.html.twig index b67ec85..3ca2baa 100644 --- a/core/modules/system/templates/fieldset.html.twig +++ b/core/modules/system/templates/fieldset.html.twig @@ -25,38 +25,34 @@ {% set classes = [ 'js-form-item', - 'form-item', 'js-form-wrapper', - 'form-wrapper', ] %} {% set legend_span_classes = [ - 'fieldset-legend', required ? 'js-form-required', - required ? 'form-required', ] %} {# Always wrap fieldset legends in a SPAN for CSS positioning. #} {{ legend.title }} -
+
{% if errors %}
{{ errors }}
{% endif %} {% if prefix %} - {{ prefix }} + {{ prefix }} {% endif %} {{ children }} {% if suffix %} - {{ suffix }} + {{ suffix }} {% endif %} {% if description.content %} - {{ description.content }}
+ {{ description.content }}
{% endif %}
diff --git a/core/modules/system/templates/form-element-label.html.twig b/core/modules/system/templates/form-element-label.html.twig index 7696609..a86ade4 100644 --- a/core/modules/system/templates/form-element-label.html.twig +++ b/core/modules/system/templates/form-element-label.html.twig @@ -16,10 +16,8 @@ #} {% set classes = [ - title_display == 'after' ? 'option', title_display == 'invisible' ? 'visually-hidden', required ? 'js-form-required', - required ? 'form-required', ] %} {% if title is not empty or required -%} diff --git a/core/modules/system/templates/form-element.html.twig b/core/modules/system/templates/form-element.html.twig index 2599e34..6747ef4 100644 --- a/core/modules/system/templates/form-element.html.twig +++ b/core/modules/system/templates/form-element.html.twig @@ -49,17 +49,13 @@ {% set classes = [ 'js-form-item', - 'form-item', 'js-form-type-' ~ type|clean_class, - 'form-item-' ~ name|clean_class, - title_display not in ['after', 'before'] ? 'form-no-label', disabled == 'disabled' ? 'form-disabled', errors ? 'form-item--error', ] %} {% set description_classes = [ - 'description', description_display == 'invisible' ? 'visually-hidden', ] %} @@ -68,7 +64,7 @@ {{ label }} {% endif %} {% if prefix is not empty %} - {{ prefix }} + {{ prefix }} {% endif %} {% if description_display == 'before' and description.content %} @@ -77,7 +73,7 @@ {% endif %} {{ children }} {% if suffix is not empty %} - {{ suffix }} + {{ suffix }} {% endif %} {% if label_display == 'after' %} {{ label }}