From 6b3b356fe2984a6a991e0f8673540bc471d9876b Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Wed, 26 Sep 2018 12:08:08 +0800 Subject: [PATCH] Fix: switch icon is not displayed normally --- src/components/Switch/index.tsx | 2 +- src/components/Switch/style.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Switch/index.tsx b/src/components/Switch/index.tsx index 8a88da1..6661a06 100644 --- a/src/components/Switch/index.tsx +++ b/src/components/Switch/index.tsx @@ -28,7 +28,7 @@ export class Switch extends React.Component { return (
- +
) } diff --git a/src/components/Switch/style.scss b/src/components/Switch/style.scss index 82aeb9e..5d95e76 100644 --- a/src/components/Switch/style.scss +++ b/src/components/Switch/style.scss @@ -51,7 +51,7 @@ $width: 32px; .switch-icon { position: absolute; - right: $switch-offset * 2; + transform: translateX(13px) scale(0.4); color: #fff; line-height: $height; }