Skip to content

Commit

Permalink
Merge pull request #2760 from sul-dlss/align-search
Browse files Browse the repository at this point in the history
Align dropdown button in the search bar
  • Loading branch information
corylown authored Dec 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 980849e + ff9aa58 commit d2f980f
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/assets/stylesheets/modules/layout.scss
Original file line number Diff line number Diff line change
@@ -24,11 +24,11 @@
}

.dropdown-toggle {
--bs-btn-border-color: var(--stanford-black);
--bs-btn-border-color: transparent;
--bs-btn-color: var(--stanford-black);
--bs-btn-hover-color: var(--stanford-black);
--bs-btn-hover-border-color: var(--stanford-black);
--bs-btn-active-border-color: var(--stanford-black);
--bs-btn-hover-border-color: transparent;
--bs-btn-active-border-color: transparent;
--bs-btn-active-color: var(--stanford-black);
}

2 changes: 1 addition & 1 deletion app/components/site_search_form_component.html.erb
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
<% end %>

<div class="dropdown d-inline-block border-end border-3" data-behavior="site-search-type-toggle" data-enabled="<%= helpers.in_search_across? ? '#item-search' : '#exhibit-search' %>" style="display: none">
<button type="button" class="btn btn-outline-secondary dropdown-toggle border-0" id="site-search-type" data-bs-toggle="dropdown" aria-expanded="false">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" id="site-search-type" data-bs-toggle="dropdown" aria-expanded="false">
<% if helpers.in_search_across? %>
<%= t('site_search_form.find_all_items') %>
<% else %>

0 comments on commit d2f980f

Please sign in to comment.