Skip to content

Commit

Permalink
Align dropdown button in the search bar
Browse files Browse the repository at this point in the history
This is done by setting the border color to transparent, but keeping it at 1px
  • Loading branch information
jcoyne committed Dec 18, 2024
1 parent f658118 commit ff9aa58
Show file tree
Hide file tree
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
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion app/components/site_search_form_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down

0 comments on commit ff9aa58

Please sign in to comment.