react-device-frame icon indicating copy to clipboard operation
react-device-frame copied to clipboard

Module styles destroy app styles

Open mperu92 opened this issue 5 years ago • 5 comments

When I import module my app styles are completely destroyed. There's a fix/workaround for this? Thank you

mperu92 avatar Dec 01 '19 09:12 mperu92

@mperu92, can you provide sample code on codesandbox or screenshot?

kimolalekan avatar Dec 01 '19 09:12 kimolalekan

I could not start write code 'cause it was enough import the module to trigger the issue: import Device from 'react-device-frame' and when i start debugging app styles are broken: font properties are lost, header with enormous margins etc, soon i'm goin' to post a screen

mperu92 avatar Dec 01 '19 09:12 mperu92

These are before/after screens: before import Device from 'react-device-frame': before

after import Device from 'react-device-frame': after

As you can see all fonts have lost their original style and added some margins

mperu92 avatar Dec 02 '19 09:12 mperu92

The latest code has resolve this problem, please publish it to npm?

minhuaF avatar Dec 05 '19 02:12 minhuaF

install de code from npm

minhuaF avatar Dec 05 '19 04:12 minhuaF