Address white falshes in storybook
This commit is contained in:
@ -34,7 +34,6 @@ export function DocsContainer({ children, context }) {
|
||||
.docblock-argstable-head th:nth-child(3), .docblock-argstable-body tr > td:nth-child(2) p {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
`}</style>
|
||||
<BaseContainer
|
||||
context={{
|
||||
@ -62,20 +61,8 @@ export function DocsContainer({ children, context }) {
|
||||
|
||||
export function CanvasContainer({ children }) {
|
||||
|
||||
const isStorybookUiDark = useDarkMode();
|
||||
|
||||
const theme = isStorybookUiDark ? darkTheme : lightTheme;
|
||||
|
||||
const backgroundColor = theme.appBg;
|
||||
|
||||
return (
|
||||
<>
|
||||
<style>{`
|
||||
body {
|
||||
padding: 0 !important;
|
||||
background-color: ${backgroundColor};
|
||||
}
|
||||
`}</style>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
|
15
.storybook/preview-head.html
Normal file
15
.storybook/preview-head.html
Normal file
@ -0,0 +1,15 @@
|
||||
<style>
|
||||
body {
|
||||
padding: 0 !important;
|
||||
background-color: #393939 !important;
|
||||
}
|
||||
|
||||
body.sb-show-preparing-docs>.sb-wrapper {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
body .sb-preparing-story {
|
||||
visibility: hidden;
|
||||
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user