aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2020-11-01 21:27:17 +0100
committerFeuerfuchs <git@feuerfuchs.dev>2020-11-01 21:27:17 +0100
commitc472bf3a94298b7f35491c95fb019d19df4f5d14 (patch)
treed70d97e90e21b8121726a8fd35e68f8675c281a1 /src
parentAdd 'state' to allowed parent contexts in iro-bem-modifier (diff)
downloadiro-sass-c472bf3a94298b7f35491c95fb019d19df4f5d14.tar.gz
iro-sass-c472bf3a94298b7f35491c95fb019d19df4f5d14.tar.bz2
iro-sass-c472bf3a94298b7f35491c95fb019d19df4f5d14.zip
Expose prefix parameter for iro-props-assign-native
Diffstat (limited to 'src')
-rw-r--r--src/_props.scss8
1 files 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: ();
208/// @param {string} $tree [$iro-props-default-tree] - ID of the property tree to use 208/// @param {string} $tree [$iro-props-default-tree] - ID of the property tree to use
209/// @param {string} $root [()] - Sub-tree to use for assignment 209/// @param {string} $root [()] - Sub-tree to use for assignment
210/// 210///
211@mixin iro-props-assign-native($tree: $iro-props-default-tree, $root: (), $skip: ()) { 211@mixin iro-props-assign-native($tree: $iro-props-default-tree, $root: (), $skip: (), $prefix: '') {
212 $map: iro-props-get($root, $tree); 212 $map: iro-props-get($root, $tree);
213 $map: map-remove($map, $skip...); 213 $map: map-remove($map, $skip...);
214 214
215 @include iro-props-assign-native-internal($map); 215 @if type-of($prefix) == list {
216 $prefix: iro-str-implode($prefix)
217 }
218
219 @include iro-props-assign-native-internal($map, $prefix);
216} 220}
217 221
218/// 222///