Skip to content

Commit 7bdfaac

Browse files
AmitMYbrandyscarney
authored andcommitted
feat(icon): add flip/unflip for icon on rtl (#11634)
* feat(icon): add flip/unflip for rtl * fix(icon): flip before not display * fix(icon): flip before not actual
1 parent 892e14f commit 7bdfaac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/fonts/ionicons.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,19 @@ ion-icon {
3232
text-rendering: auto;
3333
text-transform: none;
3434
speak: none;
35+
36+
@include rtl() {
37+
&[aria-label^="arrow"]::before,
38+
&[flip-rtl]::before {
39+
transform: scaleX(-1);
40+
}
41+
42+
&[unflip-rtl]::before {
43+
transform: scaleX(1);
44+
}
45+
}
46+
47+
&::before {
48+
display: inline-block;
49+
}
3550
}

0 commit comments

Comments
 (0)