Skip to content

Commit 1370a7e

Browse files
authored
Merge pull request #3199 from projectblacklight/doc-title
Apply bootstrap style to title with classes instead of sass extend
2 parents da60832 + 9ff946f commit 1370a7e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/assets/stylesheets/blacklight/_search_results.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
margin-top: var(--bl-results-document-margin-top);
1010
padding-top: var(--bl-results-document-padding-top);
1111

12-
.document-title-heading {
13-
@extend h5;
14-
}
15-
1612
.document-main-section {
1713
flex-grow: 1;
1814
}

app/components/blacklight/document_title_component.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class DocumentTitleComponent < Blacklight::Component
77
renders_many :actions
88

99
# rubocop:disable Metrics/ParameterLists
10-
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)
10+
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,
11+
actions: true)
1112
raise ArgumentError, 'missing keyword: :document or :presenter' if presenter.nil? && document.nil?
1213

1314
@title = title

0 commit comments

Comments
 (0)