Skip to content

Commit a69cecd

Browse files
committed
don't override custom icon colors
1 parent 7d01e08 commit a69cecd

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/block/icon-list-item/style.scss

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
border-width: 1px;
1717
border-color: rgba(0, 0, 0, 0.4);
1818
}
19-
20-
// Apply the color to the SVG path on the defintion
21-
svg.ugb-custom-icon :is(g,path,rect,polygon,ellipse) {
22-
fill: var(--stk-icon-list-marker-color) !important;
23-
color: var(--stk-icon-list-marker-color) !important;
24-
}
2519
}
2620

2721
.stk-block-icon-list-item__content {
@@ -48,13 +42,17 @@
4842
width: var(--stk-icon-height, var(--stk-icon-list-icon-size, 16px));
4943
transform: rotate(var(--stk-icon-list-icon-rotation, 0deg));
5044
opacity: var(--stk-icon-list-icon-opacity, 1);
51-
fill: var(--stk-icon-list-marker-color);
52-
color: var(--stk-icon-list-marker-color);
5345
position: relative;
5446

55-
:is(use,g,path,rect,polygon,ellipse) {
47+
// Do not apply the color to custom icons.
48+
&:not(.ugb-custom-icon) {
5649
fill: var(--stk-icon-list-marker-color);
5750
color: var(--stk-icon-list-marker-color);
51+
52+
:is(use,g,path,rect,polygon,ellipse) {
53+
fill: var(--stk-icon-list-marker-color);
54+
color: var(--stk-icon-list-marker-color);
55+
}
5856
}
5957
}
6058
}

0 commit comments

Comments
 (0)