diff --git a/core/modules/comment/templates/field--comment.html.twig b/core/modules/comment/templates/field--comment.html.twig index 413f339..75c54cb 100644 --- a/core/modules/comment/templates/field--comment.html.twig +++ b/core/modules/comment/templates/field--comment.html.twig @@ -29,13 +29,20 @@ 'field-name-' ~ field_name|clean_class, 'field-type-' ~ field_type|clean_class, 'field-label-' ~ label_display, + label_display == 'inline' ? 'clearfix', 'comment-wrapper', ] %} +{% + set title_classes = [ + 'title', + label_display == 'visually_hidden' ? 'visually-hidden', + ] +%} {% if comments and not label_hidden %} {{ title_prefix }} - {{ label }} + {{ label }} {{ title_suffix }} {% endif %}