Skip to content

Commit

Permalink
Allow SearchBarComponent to set necessary classes
Browse files Browse the repository at this point in the history
Don't rely on sass includes
  • Loading branch information
jcoyne committed Jun 19, 2024
1 parent b4145bb commit 38fb185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/assets/stylesheets/blacklight/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
}

.search-query-form {
@extend .col-md-12;
@extend .col-lg-8;
padding-left: 0;
}
}
2 changes: 1 addition & 1 deletion app/components/blacklight/search_bar_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SearchBarComponent < Blacklight::Component
def initialize(
url:, params:,
advanced_search_url: nil,
classes: ['search-query-form'], prefix: nil,
classes: ['search-query-form', 'col-md-12', 'col-lg-8'], prefix: nil,
method: 'GET', q: nil, query_param: :q,
search_field: nil, autocomplete_path: nil,
autofocus: nil, i18n: { scope: 'blacklight.search.form' },
Expand Down

0 comments on commit 38fb185

Please sign in to comment.