From c472bf3a94298b7f35491c95fb019d19df4f5d14 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Sun, 1 Nov 2020 21:27:17 +0100 Subject: Expose prefix parameter for iro-props-assign-native --- src/_props.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/_props.scss b/src/_props.scss index 7377c88..86530f7 100644 --- a/src/_props.scss +++ b/src/_props.scss @@ -208,11 +208,15 @@ $iro-props-trees: (); /// @param {string} $tree [$iro-props-default-tree] - ID of the property tree to use /// @param {string} $root [()] - Sub-tree to use for assignment /// -@mixin iro-props-assign-native($tree: $iro-props-default-tree, $root: (), $skip: ()) { +@mixin iro-props-assign-native($tree: $iro-props-default-tree, $root: (), $skip: (), $prefix: '') { $map: iro-props-get($root, $tree); $map: map-remove($map, $skip...); - @include iro-props-assign-native-internal($map); + @if type-of($prefix) == list { + $prefix: iro-str-implode($prefix) + } + + @include iro-props-assign-native-internal($map, $prefix); } /// -- cgit v1.2.3-54-g00ecf