diff --git a/.storybook/manager.js b/.storybook/manager.js index 67a9d779b..2f227e369 100644 --- a/.storybook/manager.js +++ b/.storybook/manager.js @@ -5,4 +5,7 @@ import theme from './theme'; addons.setConfig({ panelPosition: 'right', theme, + sidebar: { + showRoots: true + }, }); diff --git a/.storybook/stories/colors.stories.mdx b/.storybook/stories/colors.stories.mdx index 562f791dd..75e6830bd 100644 --- a/.storybook/stories/colors.stories.mdx +++ b/.storybook/stories/colors.stories.mdx @@ -1,5 +1,4 @@ -import { Meta, ColorPalette, ColorItem, Story } from '@storybook/addon-docs/blocks'; -import { Box, COLOR, Heading2, Island, StatusLabel, TextBody } from '../../src'; +import { Meta } from '@storybook/addon-docs'; diff --git a/.storybook/stories/playground/forms.stories.js b/.storybook/stories/playground/forms.stories.js index d269730d5..6493aa099 100644 --- a/.storybook/stories/playground/forms.stories.js +++ b/.storybook/stories/playground/forms.stories.js @@ -55,6 +55,4 @@ export const forms = () => { ); }; -forms.story = { - name: 'Form elements', -}; +forms.storyName = 'Form elements'; diff --git a/.storybook/stories/playground/zIndexes.stories.js b/.storybook/stories/playground/zIndexes.stories.js index e9262d05e..9189547b2 100644 --- a/.storybook/stories/playground/zIndexes.stories.js +++ b/.storybook/stories/playground/zIndexes.stories.js @@ -258,6 +258,4 @@ export const zIndexes = () => { ); }; -zIndexes.story = { - name: 'Z-Indexes', -}; +zIndexes.storyName = 'Z-Indexes'; diff --git a/src/components/badge/badge.stories.js b/src/components/badge/badge.stories.js index 25b3ca895..9af6104da 100644 --- a/src/components/badge/badge.stories.js +++ b/src/components/badge/badge.stories.js @@ -23,9 +23,7 @@ withIcon.args = { icon: , }; -withIcon.story = { - name: 'With icon', -}; +withIcon.storyName = 'With icon'; export const withCustomElement = (args) => I'm a badge; @@ -34,6 +32,4 @@ withCustomElement.args = { href: 'https://teamleader.eu', }; -withCustomElement.story = { - name: 'With custom element', -}; +withCustomElement.storyName = 'With custom element'; diff --git a/src/components/button/button.stories.js b/src/components/button/button.stories.js index 3a6571f53..d86198b17 100644 --- a/src/components/button/button.stories.js +++ b/src/components/button/button.stories.js @@ -27,24 +27,16 @@ withTextAndIcon.args = { label: 'Button with icon and text', }; -withTextAndIcon.story = { - name: 'With text and icon', -}; +withTextAndIcon.storyName = 'With text and icon'; export const WithText = () =>