storybook-addon-material-ui icon indicating copy to clipboard operation
storybook-addon-material-ui copied to clipboard

Decorator Adding Extra Div

Open mcclayton opened this issue 2 years ago • 2 comments

Does the decorator need to add an additional div as part of the decorator here:

https://github.com/react-theming/storybook-addon-material-ui/blob/b0ac1c444bd33212d693af182ac6fed1b069c3db/src/UI/MuiDecorator.js#L19

This is causing issues for stories that need to have 100% height.

mcclayton avatar Jan 22 '22 01:01 mcclayton

Solved this by adding extra css for my storybook:

#root > div {
  height: 100%;
}

but would still be nice not to have the extra div if it can be avoided. Feel free to close if it can't be avoided.

mcclayton avatar Jan 22 '22 01:01 mcclayton

Thanks for spotting this. Let's remove it indeed!

usulpro avatar Jan 23 '22 18:01 usulpro