Skip to content

Commit

Permalink
Fixed white blink issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsJohnnyGrid committed Feb 19, 2025
1 parent e3b7072 commit c1ea940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/.storybook/decorators/storyDarkModeDecorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const storyDarkModeDecorator = () => {
document.body.classList.add(storybookTheme);

// this fixing white blink issue
if (window.location.toString().includes("/docs/")) {
if (window.location.toString().includes("viewMode=docs")) {
document.documentElement.classList.add(storybookTheme);

setTimeout(() => {
Expand Down

0 comments on commit c1ea940

Please sign in to comment.