Skip to content

Commit

Permalink
add H1 id and update aria-labelledby attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Jan 13, 2025
1 parent db440ab commit fb783e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion decidim-core/app/views/decidim/searches/_count.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<% end %>
</div>

<h1 class="h3 decorator mb-10 md:my-10">
<h1 id="search-results-title" class="h3 decorator mb-10 md:my-10">
<%= t("decidim.search.results_found_for_term", count: @results_count, term:) %>
</h1>
2 changes: 1 addition & 1 deletion decidim-core/app/views/decidim/searches/_filters.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav role="navigation" aria-labelledby="proposals-count">
<nav role="navigation" aria-labelledby="search-results-title">
<div class="filter-container search__filter">
<button id="dropdown-trigger-search" data-component="dropdown" data-target="dropdown-menu-search" data-auto-close="true">
<%= content_tag :span, t("decidim.searches.filters_small_view.filter_by"), class: "#{"is-active" if params.dig(:filter, :with_resource_type) == nil}" %>
Expand Down

0 comments on commit fb783e0

Please sign in to comment.