Skip to content

Commit

Permalink
UHF-8839: Update empty info to be focusable
Browse files Browse the repository at this point in the history
  • Loading branch information
xkhaven committed Sep 21, 2023
1 parent 589a35c commit a301cc1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions templates/views/views-view--service-list--block-search.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,22 @@
</header>
{% endif %}

{% if is_ajax_request or total_rows > pager_items_per_page %}
{{ exposed }}
<div class="services-search__results" data-id-number="{{ dom_id }}">
<span class="service-list__count-container">
<span class="service-list__count">{{ total_rows ?? 0 }}</span>
{{ exposed }}
<div class="services-search__results" data-id-number="{{ dom_id }}">
<span class="service-list__count-container">
{% if total_rows %}
<span class="service-list__count">{{ total_rows }}</span>
{% trans with {'context': 'Service list count'}%}service{% plural total_rows %}services{% endtrans %}
</span>
</div>
{% endif %}
{% endif %}

{{ empty }}
</span>
</div>
{{ attachment_before }}

{{ rows }}

{{ empty }}

{{ pager }}

{{ attachment_after }}
Expand Down

0 comments on commit a301cc1

Please sign in to comment.