Skip to content

Commit

Permalink
Merge branch 'auto-complete-form-control' into build-css
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jun 20, 2024
2 parents d751147 + ebbb058 commit 835da9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/assets/stylesheets/blacklight/_search_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
}

.input-group > .search-autocomplete-wrapper {
@extend .form-control;
display: inline-block;
flex-grow: 4;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion app/components/blacklight/search_bar_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%= f.label @query_param, scoped_t('search.label'), class: 'sr-only visually-hidden' %>
<% if autocomplete_path.present? %>
<auto-complete src="<%= autocomplete_path %>" for="autocomplete-popup" class="search-autocomplete-wrapper">
<auto-complete src="<%= autocomplete_path %>" for="autocomplete-popup" class="search-autocomplete-wrapper form-control">
<%= f.search_field @query_param, value: @q, placeholder: scoped_t('search.placeholder'), class: "search-q q form-control rounded-#{search_fields.length > 1 ? '0' : 'left'}", autofocus: @autofocus, aria: { label: scoped_t('search.label'), autocomplete: 'list', controls: 'autocomplete-popup' } %>
<ul id="autocomplete-popup" class="dropdown-menu" role="listbox" aria-label="<%= scoped_t('search.label') %>" hidden></ul>
</auto-complete>
Expand Down

0 comments on commit 835da9b

Please sign in to comment.