Skip to content

Commit 5ba3108

Browse files
authored
Merge pull request #3197 from projectblacklight/search-bar-component
Allow SearchBarComponent to set necessary classes
2 parents 47bd00d + dc951b3 commit 5ba3108

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

app/assets/stylesheets/blacklight/_header.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,4 @@
2626
// This prevents the widget from being squished so the text overflows
2727
min-width: 7em;
2828
}
29-
30-
.search-query-form {
31-
@extend .col-md-12;
32-
@extend .col-lg-8;
33-
}
3429
}

app/components/blacklight/search_bar_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SearchBarComponent < Blacklight::Component
1111
def initialize(
1212
url:, params:,
1313
advanced_search_url: nil,
14-
classes: ['search-query-form'], prefix: nil,
14+
classes: %w[search-query-form col-md-12 col-lg-8], prefix: nil,
1515
method: 'GET', q: nil, query_param: :q,
1616
search_field: nil, autocomplete_path: nil,
1717
autofocus: nil, i18n: { scope: 'blacklight.search.form' },

0 commit comments

Comments
 (0)