Skip to content

Commit

Permalink
use noflip & remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Jun 18, 2020
1 parent c0df2e6 commit bfb1932
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ const svgIconStyles: ComponentSlotStylesPrepared<SvgIconStylesProps, SvgIconVari
fill: v.disabledColor,
}),

transform: `rotate(${rotate}deg)`,
// Use for Emotion:
// ...(rtl && {
// transform: `rotate(${-1 * rotate}deg)`,
// }),
// Manual flipping to make it compatible with Emotion and Fela in the same time
transform: `rotate(${rotate}deg) /* @noflip */`,
...(rtl && {
transform: `rotate(${-1 * rotate}deg) /* @noflip */`,
}),
};
},

Expand All @@ -109,9 +109,7 @@ const svgIconStyles: ComponentSlotStylesPrepared<SvgIconStylesProps, SvgIconVari
return {
...callable(svgIconStyles.svg)(config),
...(rtl && {
// Use for Emotion:
// transform: `scaleX(-1) rotate(${props.rotate}deg)`,
transform: `scaleX(-1) rotate(${-1 * props.rotate}deg)`,
transform: `scaleX(-1) rotate(${props.rotate}deg) /* @noflip */`,
}),
};
},
Expand Down

0 comments on commit bfb1932

Please sign in to comment.