diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html new file mode 100644 index 000000000..11ffd300e --- /dev/null +++ b/.storybook/preview-head.html @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/.storybook/preview.js b/.storybook/preview.js index fb12dbc61..b1935881b 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -13,19 +13,6 @@ import { Themes } from "./styles/themes"; // import("@css/font/index.css"); // } -// Use the document.fonts API to check if fonts have loaded -// https://developer.mozilla.org/en-US/docs/Web/API/Document/fonts API to -const fontLoader = async () => ({ - fonts: await document.fonts.ready, -}); - -/* 👇 It's configured as a global loader -* See https://storybook.js.org/docs/react/writing-stories/loaders -* to learn more about loaders -*/ -export const loaders = isChromatic() && document.fonts ? [fontLoader] : []; - - export const parameters = { options: { storySort: {