Skip to content

Commit

Permalink
fix error with chromatic css
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Thibault committed Oct 6, 2023
1 parent a797dd4 commit 22a0fd8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { withBackgroundMatchingColorScheme, withCenteredCanvas, withDocsContaine
import { Code, Highlight } from "@stories/mdx";
import { Themes } from "./styles/themes";

// if (isChromatic) {
// // Custom font makes chromatic inconsistent and cause "false positive". View https://www.chromatic.com/docs/resource-loading#loading-custom-fonts.
// import("@css/font/index.css");
// }
if (isChromatic) {
// Custom font makes chromatic inconsistent and cause "false positive". View https://www.chromatic.com/docs/resource-loading#loading-custom-fonts.
import("@css/font/index.css");
} else {
import("./styles/chromatic.css");
}

export const parameters = {
options: {
Expand Down

0 comments on commit 22a0fd8

Please sign in to comment.