diff -u b/core/modules/views/templates/views-view-summary-unformatted.html.twig b/core/modules/views/templates/views-view-summary-unformatted.html.twig --- b/core/modules/views/templates/views-view-summary-unformatted.html.twig +++ b/core/modules/views/templates/views-view-summary-unformatted.html.twig @@ -21,16 +21,14 @@ */ #} {% for row in rows %} - {% - set row_classes = [ - row.active ? 'active', - ] - %} {{ options.inline ? ' {% if row.separator -%} {{ row.separator }} {%- endif %} - {{ row.link }} + {% if row.active %} + {% set row.attributes = row.attributes.addClass('active') %} + {% endif %} + {{ row.link }} {% if options.count %} ({{ row.count }}) {% endif %}