Skip to content

Commit

Permalink
feat: add inner container (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Sep 20, 2022
1 parent 50204c9 commit bfbcfbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(
onClick={onInternalClick}
>
{loadingIcon}
<span className={`${prefixCls}-inner-checked`}>{checkedChildren}</span>
<span className={`${prefixCls}-inner-unchecked`}>{unCheckedChildren}</span>
<span className={`${prefixCls}-inner`}>
<span className={`${prefixCls}-inner-checked`}>{checkedChildren}</span>
<span className={`${prefixCls}-inner-unchecked`}>{unCheckedChildren}</span>
</span>
</button>
);
},
Expand Down

0 comments on commit bfbcfbf

Please sign in to comment.