Skip to content

Commit 952a5f1

Browse files
committed
fix: add RTL support
1 parent bf6a3e4 commit 952a5f1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scss/mixins/_float.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
// stylelint-disable declaration-no-important
22

33
@mixin float-left() {
4-
float: left !important;
4+
@include ltr {
5+
float: left !important;
6+
}
7+
@include rtl {
8+
float: right !important;
9+
}
510
@include deprecate("The `float-left` mixin", "v4.3.0", "v5");
611
}
712
@mixin float-right() {
8-
float: right !important;
13+
@include ltr {
14+
float: right !important;
15+
}
16+
@include rtl {
17+
float: left !important;
18+
}
919
@include deprecate("The `float-right` mixin", "v4.3.0", "v5");
1020
}
1121
@mixin float-none() {

0 commit comments

Comments
 (0)