Fix toggle switch bug when Flipper's width is small

Summary:
Bug:

{F214979227}

Reviewed By: passy

Differential Revision: D17763781

fbshipit-source-id: 21890caee796ac0df6f39e618a762c44955dd647
This commit is contained in:
Pritesh Nandgaonkar
2019-10-07 07:42:22 -07:00
committed by Facebook Github Bot
parent ff76b17a5b
commit d310027d88

View File

@@ -19,6 +19,7 @@ export const StyledButton = styled('div')((props: {toggled: boolean}) => ({
borderRadius: '100px', borderRadius: '100px',
position: 'relative', position: 'relative',
marginLeft: '15px', marginLeft: '15px',
flexShrink: 0,
'&::after': { '&::after': {
content: '""', content: '""',
position: 'absolute', position: 'absolute',