Skip to content

Commit

Permalink
Allow the hover color for the remove contstraint link to be customized
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Aug 21, 2024
1 parent 6d1d288 commit e3bc433
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/assets/stylesheets/blacklight/_constraints.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
padding-left: $caret-width;
}

.remove:hover, .remove:active {
@extend .btn-danger;
.remove {
--bs-btn-hover-bg: var(--bl-constraint-remove-hover-bg);
--bs-btn-hover-border-color: var(--bl-constraint-remove-hover-border-color);
--bs-btn-active-bg: var(--bl-constraint-remove-hover-bg);
--bs-btn-active-border-color: var(
--bl-constraint-remove-hover-border-color
);
}
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/blacklight/blacklight_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ $body-secondary-color: rgba($body-color, 0.75) !default;
:root {
--bs-secondary-color: #{$body-secondary-color}; /* for compatability with BS < 5.3 */

--bl-constraint-remove-hover-bg: #bb2d3b;
--bl-constraint-remove-hover-border-color: #bb2d3b;

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

Expand Down

0 comments on commit e3bc433

Please sign in to comment.