Merge branch 'rtl-toggle' into 'main'
Fix RTL Toggle Closes #1462 See merge request soapbox-pub/soapbox!2787
This commit is contained in:
commit
341fd4fcea
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@ const Toggle: React.FC<IToggle> = ({ id, size = 'md', name, checked = false, onC
|
|||
>
|
||||
<div className={clsx('rounded-full bg-white transition-transform', {
|
||||
'h-4.5 w-4.5': size === 'sm',
|
||||
'translate-x-3.5': size === 'sm' && checked,
|
||||
'translate-x-3.5 rtl:-translate-x-3.5': size === 'sm' && checked,
|
||||
'h-6 w-6': size === 'md',
|
||||
'translate-x-4': size === 'md' && checked,
|
||||
'translate-x-4 rtl:-translate-x-4': size === 'md' && checked,
|
||||
})}
|
||||
/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue