Skip to content

Commit 99ec18a

Browse files
authored
Merge pull request #3490 from projectblacklight/iconfill-var
Create a blacklight specific variable for the bookmark icon color
2 parents dcd30e8 + 2063e27 commit 99ec18a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/assets/builds/blacklight.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ main {
192192
}
193193

194194
.bookmark-toggle {
195+
--bl-icon-color: var(--bs-primary);
195196
/* override for line 21.
196197
Creates weird spacing in toolbar when min-width is set to 8rem */
197198
}
@@ -215,7 +216,7 @@ main {
215216
height: 1.25rem;
216217
width: 1.25rem;
217218
overflow: visible;
218-
fill: var(--bs-primary);
219+
fill: var(--bl-icon-color);
219220
}
220221
.bookmark-toggle .toggle-bookmark .toggle-bookmark-label .blacklight-icons svg.bookmark-checked {
221222
display: none;

app/assets/stylesheets/blacklight/_bookmark.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.bookmark-toggle {
2+
--bl-icon-color: var(--bs-primary);
3+
24
.no-js & {
35
input[type="submit"] {
46
display: inline;
@@ -24,7 +26,7 @@
2426
height: 1.25rem;
2527
width: 1.25rem;
2628
overflow: visible;
27-
fill: var(--bs-primary);
29+
fill: var(--bl-icon-color);
2830

2931
&.bookmark-checked {
3032
display: none;

0 commit comments

Comments
 (0)