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 Oct 17, 2024
1 parent bd2d03c commit dc951b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions app/assets/stylesheets/blacklight/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@
// This prevents the widget from being squished so the text overflows
min-width: 7em;
}

.search-query-form {
@extend .col-md-12;
@extend .col-lg-8;
}
}
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: %w[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 dc951b3

Please sign in to comment.