We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bc1b21 commit 1c8186dCopy full SHA for 1c8186d
source/_patterns/00-base/icons/_icons.helpers.scss
@@ -6,6 +6,11 @@
6
$position: "before",
7
$partial: false
8
) {
9
+ // We're setting this on the parent tag, so that it could get overwritten via data-icon=*
10
+ @if $glyph != "" {
11
+ --icon-glyph: "#{$glyph}";
12
+ }
13
+
14
&::#{$position} {
15
--icon-font-family: "#{"icons-" + $size + "-" + $style}",
16
"missing-icons" !important;
@@ -25,9 +30,6 @@
25
30
);
26
31
}
27
32
28
- @if $glyph != "" {
29
- --icon-glyph: "#{$glyph}";
- }
33
@if $partial {
34
content: var(--icon-glyph);
35
display: inline-block;
0 commit comments