Fix: switch icon is not displayed normally

This commit is contained in:
Dreamacro 2018-09-26 12:08:08 +08:00
parent e8bde550a3
commit 6b3b356fe2
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export class Switch extends React.Component<SwitchProps, {}> {
return (
<div className={classnames('switch', { checked, disabled }, className)} onClick={this.handleClick}>
<Icon className="switch-icon" type="check" size={8} style={{ fontWeight: 'bold' }} />
<Icon className="switch-icon" type="check" size={20} style={{ fontWeight: 'bold' }} />
</div>
)
}

View File

@ -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;
}