Material UI Dialog Component is not responsive and can't see all screen
belfortmaycon opened this issue Β· comments
Bug Report π
I'm testing a Material UI Dialog and when opening the screen on playground the CSS is not applied and the screen size is not responsive not allowing to see the entire component
To Reproduce βοΈ
- Create a simple component like in Material UI Dialog document https://material-ui.com/components/dialogs/#simple-dialogs
- Write a test to open the dialog and print the testing playground url
https://codesandbox.io/s/frosty-cherry-k1gx8?file=/src/__tests__/GenericDialog.test.tsx - Access the url and only can see a large image without scroll options
Expected behavior π€
Open the playground and see the screen with images in standard sizes
Suggested solution π¦
I believe that the cause is not applying a css on screen, this way images are not resized.
Your Environment π»
- browser: Chrome
- os: Mac
Hi!
Can you share that playground url?
I'm not sure if there is something that we can do to fix this. I don't think it's appropriate to also send all stylesheet and other potentially related code to testing-playground.com, when the test runner offers that link.
Without diving into details here, I think the best way to debug issues in this kind of advanced scenarios, is using the browser extensions.