Skip to content

Commit 0ba8da8

Browse files
committed
Move intervention after tabs and adjust skip link target
1 parent 0601587 commit 0ba8da8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/views/layouts/_skip_links.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<% if controller.controller_name == 'record' && controller.action_name == 'view' %>
22
<a class='skip-link sr sr-focusable' href='#full-record'>
33
<% elsif controller.controller_name == 'search' %>
4-
<a class='skip-link sr sr-focusable' href='#results'>
4+
<a class='skip-link sr sr-focusable' href='#tabs'>
55
<% else %>
66
<a class='skip-link sr sr-focusable' href='#basic-search-main'>
77
<% end %>

app/views/search/results.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010

1111
<%= render partial: "form" %>
1212
<%= render partial: "search_summary" %>
13-
<%= render(partial: 'trigger_tacos') if tacos_enabled? %>
1413

1514
<%= render(partial: 'shared/error', collection: @errors) %>
1615

1716
<!-- Tab Navigation -->
18-
<div class="tab-navigation top-space">
17+
<div id="tabs" class="tab-navigation top-space">
1918
<%= link_to "Primo", results_path(params.permit(:q, :per_page, :page).merge(tab: 'primo')),
2019
class: "tab-link #{'active' if @active_tab == 'primo'}",
2120
data: { turbo_frame: "search-results" } %>
@@ -24,6 +23,8 @@
2423
data: { turbo_frame: "search-results" } %>
2524
</div>
2625

26+
<%= render(partial: 'trigger_tacos') if tacos_enabled? %>
27+
2728
<%= turbo_frame_tag "search-results" do %>
2829
<div class="layout-3q1q layout-band top-space">
2930
<main id="results" class="col3q wrap-results">

0 commit comments

Comments
 (0)