Skip to content

Commit

Permalink
fix(Storybook-Darkmode): fixed background-flashing in darkmode (#1928)
Browse files Browse the repository at this point in the history
- changed background-color of flashing-elements to transperent
- remove placeholder
  • Loading branch information
ChristianBusshoff authored Oct 9, 2024
1 parent 6d46a1c commit 65ec48d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/storybook-utils/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@
/* same as Storybook color "textMuted" inside ./theme.ts */
color: var(--onyx-color-text-icons-neutral-medium);
}

/* To prevent bg flashing when changing between elements in darkmode */
.sb-preparing-story,
.sb-preparing-docs {
background-color: transparent;
}
/* removed placeholder for the same reason */
.sb-previewBlock,
.sb-argstableBlock {
display: none;
}

0 comments on commit 65ec48d

Please sign in to comment.