Skip to content

Commit be865bb

Browse files
committed
feat: added possibility to define the font-size
1 parent 812537f commit be865bb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: scss/icon/_icons.helpers.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,15 @@
9090
}
9191

9292
// Icon meta data mixin
93-
@mixin icon-meta($size: $icon-size, $style: $icon-style, $position: "before") {
93+
@mixin icon-meta(
94+
$size: $icon-size,
95+
$style: $icon-style,
96+
$position: "before",
97+
$font-size: $icon-size
98+
) {
9499
&::#{$position} {
95100
--icon-font-family: "#{"icons-" + $size + "-" + $style}",
96101
"missing-icons";
97-
--icon-font-size: #{to-rem($pxValue: $size)};
102+
--icon-font-size: #{to-rem($pxValue: $font-size)};
98103
}
99104
}

0 commit comments

Comments
 (0)