Skip to content

Commit

Permalink
feat(icon): add flip/unflip for icon on rtl (#11634)
Browse files Browse the repository at this point in the history
* feat(icon): add flip/unflip for rtl

* fix(icon): flip before not display

* fix(icon): flip before not actual
  • Loading branch information
AmitMY authored and brandyscarney committed May 22, 2017
1 parent 892e14f commit 7bdfaac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/fonts/ionicons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,19 @@ ion-icon {
text-rendering: auto;
text-transform: none;
speak: none;

@include rtl() {
&[aria-label^="arrow"]::before,
&[flip-rtl]::before {
transform: scaleX(-1);
}

&[unflip-rtl]::before {
transform: scaleX(1);
}
}

&::before {
display: inline-block;
}
}

0 comments on commit 7bdfaac

Please sign in to comment.