diff --git a/core/themes/stable/templates/form/details.html.twig b/core/themes/stable/templates/form/details.html.twig index ccd2796..3c3fba7 100644 --- a/core/themes/stable/templates/form/details.html.twig +++ b/core/themes/stable/templates/form/details.html.twig @@ -14,6 +14,12 @@ * @see template_preprocess_details() */ #} +{% + set description_classes = [ + 'description', + description_display == 'invisible' ? 'visually-hidden', + ] +%} {% set summary_classes = [ @@ -31,7 +37,11 @@ {% endif %} - {{ description }} + {% if description.content %} + + {{ description.content }} + + {% endif %} {{ children }} {{ value }}