From be865bbca7bb824dd6df70e5e4e7a2a76e291951 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Fri, 16 Dec 2022 09:33:11 +0100 Subject: [PATCH] feat: added possibility to define the font-size --- scss/icon/_icons.helpers.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scss/icon/_icons.helpers.scss b/scss/icon/_icons.helpers.scss index dd18f0f47..ee9ab033f 100644 --- a/scss/icon/_icons.helpers.scss +++ b/scss/icon/_icons.helpers.scss @@ -90,10 +90,15 @@ } // Icon meta data mixin -@mixin icon-meta($size: $icon-size, $style: $icon-style, $position: "before") { +@mixin icon-meta( + $size: $icon-size, + $style: $icon-style, + $position: "before", + $font-size: $icon-size +) { &::#{$position} { --icon-font-family: "#{"icons-" + $size + "-" + $style}", "missing-icons"; - --icon-font-size: #{to-rem($pxValue: $size)}; + --icon-font-size: #{to-rem($pxValue: $font-size)}; } }