Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
remove code that patched storybook backgrounds (not supported in Chro…
Browse files Browse the repository at this point in the history
…matic) in favor of backgroundOverride()
  • Loading branch information
stephenhmarsh committed Jan 7, 2022
1 parent cc073b6 commit 118fb00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
options: {
// https://storybook.js.org/docs/html/essentials/introduction
actions: false,
backgrounds: true,
backgrounds: false,
controls: true,
docs: false,
toolbars: false,
Expand Down
11 changes: 1 addition & 10 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { addDecorator, addParameters } from "@storybook/html";
import { addDecorator } from "@storybook/html";
import { useEffect } from "@storybook/client-api";
import global from "../src/global/global";
import colorVariables from "../src/base/_colors.scss";
import "./storybook.css";

const marbleGlobalJSDecorator = (storyFn) => {
useEffect(global);
Expand All @@ -22,13 +20,6 @@ export const parameters = {
],
},
},
backgrounds: {
values: [
{ name: "white", value: colorVariables.colorWhite },
{ name: "grey500", value: colorVariables.colorGrey500 },
{ name: "black", value: colorVariables.colorBlack },
],
},
layout: "fullscreen",
options: {
storySort: {
Expand Down
7 changes: 0 additions & 7 deletions .storybook/storybook.css

This file was deleted.

0 comments on commit 118fb00

Please sign in to comment.