From 38fb185d707f2adb85c047d9ac270f6a2811748e Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 19 Jun 2024 16:27:56 -0500 Subject: [PATCH] Allow SearchBarComponent to set necessary classes Don't rely on sass includes --- app/assets/stylesheets/blacklight/_header.scss | 2 -- app/components/blacklight/search_bar_component.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/stylesheets/blacklight/_header.scss b/app/assets/stylesheets/blacklight/_header.scss index afd3389e99..dbb6f9534c 100644 --- a/app/assets/stylesheets/blacklight/_header.scss +++ b/app/assets/stylesheets/blacklight/_header.scss @@ -28,8 +28,6 @@ } .search-query-form { - @extend .col-md-12; - @extend .col-lg-8; padding-left: 0; } } diff --git a/app/components/blacklight/search_bar_component.rb b/app/components/blacklight/search_bar_component.rb index fc3072ef9a..967ba7bd34 100644 --- a/app/components/blacklight/search_bar_component.rb +++ b/app/components/blacklight/search_bar_component.rb @@ -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' },