Skip to content

Commit

Permalink
Allow active facet header color to be set with a css property
Browse files Browse the repository at this point in the history
Fixes #3174
  • Loading branch information
jcoyne committed Nov 4, 2024
1 parent 90e5c0a commit 9604678
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/blacklight/_facets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
.facet-limit-active {
--bs-accordion-btn-bg: var(--bl-facet-active-bg);
--bs-btn-hover-bg: var(--bs-accordion-btn-bg);
--bs-accordion-btn-color: #{color-contrast($facet-active-bg)};
--bs-accordion-btn-color: var(--bl-facet-active-header-color);
--bs-btn-hover-color: var(--bs-accordion-btn-color);
--bs-accordion-active-color: var(--bs-accordion-btn-color);
}
Expand Down
2 changes: 2 additions & 0 deletions app/assets/stylesheets/blacklight/blacklight_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ $body-secondary-color: rgba($body-color, 0.75) !default;
--bl-constraint-remove-hover-border-color: #bb2d3b;

--bl-field-name-color: var(--bs-secondary-color);

--bl-facet-active-header-color: #{color-contrast($facet-active-bg)};
}

0 comments on commit 9604678

Please sign in to comment.