Toggle: fix size sm track
This commit is contained in:
parent
d0fbc881e7
commit
2b5a3f720d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ const Toggle: React.FC<IToggle> = ({ id, size = 'md', name, checked, onChange, r
|
|||
>
|
||||
<div className={clsx('rounded-full bg-white transition-transform', {
|
||||
'h-4.5 w-4.5': size === 'sm',
|
||||
'translate-x-3': size === 'sm' && checked,
|
||||
'translate-x-3.5': size === 'sm' && checked,
|
||||
'h-6 w-6': size === 'md',
|
||||
'translate-x-4': size === 'md' && checked,
|
||||
})}
|
||||
|
|
Loading…
Reference in a new issue