diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 82c69c4e..e57d6eb8 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -36,10 +36,12 @@ def link_to_tab(target, label = nil) link_to tab_label, results_path(params.permit(:q, :per_page, :booleanType, :tab).merge(tab: clean_target)), aria: { current: 'page' }, class: 'active tab-link', + role: 'button', data: { turbo_frame: 'search-results', turbo_action: 'advance' } else link_to tab_label, results_path(params.permit(:q, :per_page, :booleanType, :tab).merge(tab: clean_target)), class: 'tab-link', + role: 'button', data: { turbo_frame: 'search-results', turbo_action: 'advance' } end end diff --git a/app/views/search/_result.html.erb b/app/views/search/_result.html.erb index d8040e59..47b913fa 100644 --- a/app/views/search/_result.html.erb +++ b/app/views/search/_result.html.erb @@ -4,7 +4,6 @@
<%= result[:eyebrow] %>
<% end %><%= result[:eyebrow] %>
<% end %>