Skip to content

Commit

Permalink
Add the h4/h6 classes to the facet headings rather than using scss
Browse files Browse the repository at this point in the history
This will allow the application to run without having a sass dependency
  • Loading branch information
jcoyne committed Jun 20, 2024
1 parent b4145bb commit 5277cb9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/assets/stylesheets/blacklight/_facets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
}

.facets-heading {
@extend .h4;
line-height: inherit;
}

Expand Down Expand Up @@ -193,8 +192,6 @@
}

.facet-field-heading {
@extend .h6;

a {
color: inherit;
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/blacklight/facet_field_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card facet-limit blacklight-<%= @facet_field.key %> <%= 'facet-limit-active' if @facet_field.active? %>">
<h3 class="card-header p-0 facet-field-heading" id="<%= header_html_id %>">
<h3 class="card-header p-0 facet-field-heading h6" id="<%= header_html_id %>">
<button
type="button"
class="btn w-100 d-block btn-block p-2 text-start text-left collapse-toggle <%= "collapsed" if @facet_field.collapsed? %>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% # main container for facets/limits menu -%>
<%= content_tag :div, id: @id, class: 'facets sidenav facets-toggleable-md' do %>
<div class="facets-header">
<%= content_tag :h2, @title, class: 'facets-heading' if @title %>
<%= content_tag :h2, @title, class: 'facets-heading h4' if @title %>
<%= content_tag :button,
class:'navbar-toggler navbar-toggler-right',
Expand Down

0 comments on commit 5277cb9

Please sign in to comment.