From 9ff946f4414de334eae4fca6bdb55227b69ec482 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 19 Jun 2024 16:42:32 -0500 Subject: [PATCH] Apply bootstrap style to title with classes instead of sass extend This will allow us to run blacklight without sass --- app/assets/stylesheets/blacklight/_search_results.scss | 4 ---- app/components/blacklight/document_title_component.rb | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/blacklight/_search_results.scss b/app/assets/stylesheets/blacklight/_search_results.scss index 87abc17aba..26114c19df 100644 --- a/app/assets/stylesheets/blacklight/_search_results.scss +++ b/app/assets/stylesheets/blacklight/_search_results.scss @@ -6,10 +6,6 @@ margin-top: $spacer; padding-top: $spacer; - .document-title-heading { - @extend h5; - } - .document-main-section { flex-grow: 1; } diff --git a/app/components/blacklight/document_title_component.rb b/app/components/blacklight/document_title_component.rb index 8613bbe912..df6c4fa95b 100644 --- a/app/components/blacklight/document_title_component.rb +++ b/app/components/blacklight/document_title_component.rb @@ -7,7 +7,8 @@ class DocumentTitleComponent < Blacklight::Component renders_many :actions # rubocop:disable Metrics/ParameterLists - def initialize(title = nil, document: nil, presenter: nil, as: :h3, counter: nil, classes: 'index_title document-title-heading col', link_to_document: true, document_component: nil, actions: true) + def initialize(title = nil, document: nil, presenter: nil, as: :h3, counter: nil, classes: 'index_title document-title-heading col h5', link_to_document: true, document_component: nil, + actions: true) raise ArgumentError, 'missing keyword: :document or :presenter' if presenter.nil? && document.nil? @title = title