diff --git a/.storybook/main.js b/.storybook/main.js index 76303bda..38c20d86 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -14,7 +14,6 @@ const config = { '@storybook/addon-backgrounds', '@storybook/addon-controls', '@storybook/addon-links', - '@storybook/addon-knobs', '@storybook/addon-storysource', '@storybook/addon-mdx-gfm' ], diff --git a/.storybook/preview.js b/.storybook/preview.js index ff8afb73..c469437a 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,6 +1,14 @@ import colors from '../src/Styles/colors/palette'; const preview = { + decorators: [ + (Story) => ( +
+ {/* 👇 Decorators in Storybook also accept a function. Replace with Story() to enable it */} + +
+ ), + ], parameters: { backgrounds: { default: '$ux-white', diff --git a/package.json b/package.json index c518a154..da99ff68 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,6 @@ "@storybook/addon-controls": "^7.4.1", "@storybook/addon-docs": "7.4.1", "@storybook/addon-jest": "7.4.1", - "@storybook/addon-knobs": "7.0.2", "@storybook/addon-links": "7.4.1", "@storybook/addon-mdx-gfm": "7.4.1", "@storybook/addon-storyshots": "7.4.1", diff --git a/spec/__snapshots__/Storyshots.test.js.snap b/spec/__snapshots__/Storyshots.test.js.snap index 7ee97d5a..bc1d8d33 100644 --- a/spec/__snapshots__/Storyshots.test.js.snap +++ b/spec/__snapshots__/Storyshots.test.js.snap @@ -5139,9 +5139,6 @@ exports[`Storyshots Components/Card Default 1`] = ` > Subtitle -
- Use knobs to try out the different card sizes -
`; @@ -7286,13 +7283,6 @@ exports[`Storyshots Components/Form Elements/CheckboxButtonGroup Default 1`] = ` htmlFor="checkbox-button-group" > Legend - -  ( - use the knobs to try out different variations - ) -