Skip to content

Commit

Permalink
Apply bootstrap style to title with classes instead of sass extend
Browse files Browse the repository at this point in the history
This will allow us to run blacklight without sass
  • Loading branch information
jcoyne committed Jun 19, 2024
1 parent b4145bb commit 9ff946f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/assets/stylesheets/blacklight/_search_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
margin-top: $spacer;
padding-top: $spacer;

.document-title-heading {
@extend h5;
}

.document-main-section {
flex-grow: 1;
}
Expand Down
3 changes: 2 additions & 1 deletion app/components/blacklight/document_title_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ff946f

Please sign in to comment.