Address white falshes in storybook

This commit is contained in:
Joseph Garrone
2024-06-05 01:02:17 +02:00
parent 183826ca0d
commit 0b5a7544ca
5 changed files with 93 additions and 100 deletions

View File

@ -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}
</>
);

View 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>