Skip to content

Commit

Permalink
Merge pull request #3490 from projectblacklight/iconfill-var
Browse files Browse the repository at this point in the history
Create a blacklight specific variable for the bookmark icon color
  • Loading branch information
seanaery authored Jan 13, 2025
2 parents dcd30e8 + 2063e27 commit 99ec18a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/assets/builds/blacklight.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ main {
}

.bookmark-toggle {
--bl-icon-color: var(--bs-primary);
/* override for line 21.
Creates weird spacing in toolbar when min-width is set to 8rem */
}
Expand All @@ -215,7 +216,7 @@ main {
height: 1.25rem;
width: 1.25rem;
overflow: visible;
fill: var(--bs-primary);
fill: var(--bl-icon-color);
}
.bookmark-toggle .toggle-bookmark .toggle-bookmark-label .blacklight-icons svg.bookmark-checked {
display: none;
Expand Down
4 changes: 3 additions & 1 deletion app/assets/stylesheets/blacklight/_bookmark.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.bookmark-toggle {
--bl-icon-color: var(--bs-primary);

.no-js & {
input[type="submit"] {
display: inline;
Expand All @@ -24,7 +26,7 @@
height: 1.25rem;
width: 1.25rem;
overflow: visible;
fill: var(--bs-primary);
fill: var(--bl-icon-color);

&.bookmark-checked {
display: none;
Expand Down

0 comments on commit 99ec18a

Please sign in to comment.