Skip to content

Commit baf057e

Browse files
committed
fix: add rtl utilities
1 parent 773dabd commit baf057e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scss/mixins/_utilities.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
// Add theme prefix
3535
$theme-prefix: if(map-has-key($utility, theme-prefix), map-get($utility, theme-prefix), false);
3636

37+
// Generate RTL version
38+
$generate-rtl: if(map-has-key($utility, rtl), map-get($utility, rtl), false);
39+
3740
@if map-get($utility, rfs) {
3841
// Inside the media query
3942
@if $is-rfs-media-query {
@@ -74,7 +77,11 @@
7477
--#{$variable-prefix}#{$local-var}: #{$variable};
7578
}
7679
}
77-
#{$property}: $value if($enable-important-utilities, !important, null);
80+
@if $generate-rtl == true {
81+
@include ltr-rtl($property, $value, null, null, if($enable-important-utilities, !important, null));
82+
} @else {
83+
#{$property}: $value if($enable-important-utilities, !important, null);
84+
}
7885
}
7986
}
8087

0 commit comments

Comments
 (0)