Skip to content

Commit

Permalink
Use bootstrap styles for skip links
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 25, 2024
1 parent af2196c commit 27953ee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/views/layouts/spotlight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@
</head>
<body class="<%= render_body_class %>">
<%= render partial: 'shared/body_preamble' %>
<div id="skip-link">
<% if should_render_spotlight_search_bar? %>
<%= link_to t('blacklight.skip_links.search_field'), '#search_field', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbo: false } %>
<% end %>
<%= link_to t('blacklight.skip_links.main_content'), '#main-container', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbo: false } %>
<%= render blacklight_config.skip_link_component.new do %>
<%= content_for(:skip_links) %>
</div>
<% end %>

<%= render partial: 'shared/header_navbar' %>
<%= render partial: 'shared/masthead' %>
Expand Down

0 comments on commit 27953ee

Please sign in to comment.